Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2007 21:08:01 +1000
From:      Lawrence Stewart <lstewart@room52.net>
To:        =?ISO-8859-1?Q?Marc_L=F6rner?= <marc.loerner@hob.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Writing a plain text file to disk from kernel space
Message-ID:  <46499491.2010205@room52.net>
In-Reply-To: <200705150847.38838.marc.loerner@hob.de>
References:  <4649349D.4060101@room52.net> <200705150847.38838.marc.loerner@hob.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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!





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46499491.2010205>