lkml.org 
[lkml]   [1999]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectfile 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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.075 / U:5.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site