/usr/bin/avos:FLASH Write()
From ArchosDocs
Description
Writes data to flash memory
The Code
int FLASH_Write(struct flashrw_params *ctx /* -0x20 */)
{
struct flashrw_request argp; /* -0x18 */
if(dev_flashrw < 0)
return -1;
if(ctx == NULL)
return -1;
memcpy(&argp.ctx, ctx, sizeof(struct flashrw_params));
argp.size = 16;
if(ioctl(dev_flashrw, 4, &argp) < 0) {
if(errno == 300)
return -2;
return -1;
}
return 0;
}

