Writing a plain text file to disk from kernel space

Lawrence Stewart lstewart at room52.net
Tue May 15 11:37:58 UTC 2007


Hi Marc,


Marc Lörner wrote:

[snip]
 >
 > BTW, you can get an thread-struct pointer from curthread (c.f. 
sys/pcpu.h).
 >
[snip]


Thanks very much for the reply.

"curthread" is the missing key that I've been looking for! Thank you so 
much. I've been banging my head against a brick wall for days now.

I'll have a play around and report back to the list what I find for 
archival purposes.

Cheers,
Lawrence

PS Just found a thread I hadn't found before 
(http://lists.freebsd.org/pipermail/freebsd-hackers/2006-March/015647.html) 
which has lots of useful info and a link 
(http://people.freebsd.org/~pjd/misc/kernio/) to some sample code!




More information about the freebsd-hackers mailing list