LWN.net Logo

Driver porting: the BIO structure

Driver porting: the BIO structure

Posted Jul 20, 2004 8:33 UTC (Tue) by rf (guest, #20877)
Parent article: Driver porting: the BIO structure

Any devices allow to transfer fixed amount of bytes per one request.
SATA allows only 100KB = 200 sectors to read/write from/to device per one request.
Can I change this value(), for example to 1M oder ....

maybe :
request_queue_t *q;
q = bdev_get_queue(bdev);
q->max_sectors = XXXXX;

I am unsafe .... ?


thanks...


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds