Messages in this thread | | | Date | Mon, 26 Apr 1999 10:30:14 -0700 (PDT) | From | David Beccue <> | Subject | file read/write within device driver |
| |
What is the preferred mechanism for doing file I/O from within a module?
A) bh = bread( dev, disk_offset, 4096 );
or... B) new_bh = kmalloc(); new_bh->everything = new_stuff; make_request( MAJOR(dev), WRITE, new_bh );
or... C) something else entirely?
Thanks!
[ David Beccue ] [ David@Beccue.com ] [ 888-DBECCUE ]
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |