Can a device driver guru please help me with this.
I'm Writing a block device driver in linux,
A real simplified verison of the code is
//BLKSIZE = 1024
void request_block(void) // less kernel 2.2.32
INIT_REQUEST; // and all that protection
if (CURRENT->cmd = read)
if (CURRENT->cmd = write)
CURRENT->current_no_sectors is 2.Quote:}
I'm only putting 1024 bytes in the buffer.
When I read the device it gives me only every second 1024 bytes.
If I pump in more than 1024 eg 2048 ,
there are problems with stability.
Can Any on please Help me.