Hello all,
I am working with flash, a block driver.
When i do a simple read system call for 2 times to get sector data and
each time 512 bytes(1 sector),
call: read(fd, ubuf, 512);
... the varaible NumSectors in the block driver for the first read is 2
and for second read is 0.
The data read to ubuf is also different.
The parameter that is passed as number of bytes from read call is not
considered in the driver and 2 sectors are read in the driver.
Can anyone tell me how the NumSectors gets assigned in the driver & how
it is related to "CURRENT->current_nr_sectors" .
Thanks
Sudheer