kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Getting a block from a block device?
@ 2011-11-08 11:06 Dan Luedtke
       [not found] ` <CACzurzsCpKN_9Ew+g-HLvH=GuPQU=Tzf8yrimf-zDOjPtFsF2w@mail.gmail.com>
  2011-11-08 12:08 ` Javier Martinez Canillas
  0 siblings, 2 replies; 11+ messages in thread
From: Dan Luedtke @ 2011-11-08 11:06 UTC (permalink / raw)
  To: kernelnewbies

Hallo everyone,

could someone please give me a hint on how to get a block (e.g. 512
bytes) from a block device from a kernel module?

What .txt should I consult? Which headerfiles must I include?
Where can I find the required function's definitions?

In userspace I used fopen() with the device path as filename, I bet it
isn't that easy in kernel mode.

I am using kernel sources from gentoo: 3.0.6-gentoo, but I can use
vanilla if it really helps.

thanks,

Dan

-- 
Dan Luedtke
http://www.danrl.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-11-09  7:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 11:06 Getting a block from a block device? Dan Luedtke
     [not found] ` <CACzurzsCpKN_9Ew+g-HLvH=GuPQU=Tzf8yrimf-zDOjPtFsF2w@mail.gmail.com>
2011-11-08 11:56   ` Dan Luedtke
2011-11-08 11:59     ` rohan puri
2011-11-08 12:28       ` mani
2011-11-08 14:02         ` Dan Luedtke
2011-11-08 15:18           ` Manish Katiyar
2011-11-09  4:54             ` rohan puri
2011-11-09  7:32               ` Dan Luedtke
2011-11-08 12:12     ` Alexandru Juncu
2011-11-08 12:21       ` Stephen Gream
2011-11-08 12:08 ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).