Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2007 12:58:34 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Lawrence Stewart <lstewart@room52.net>
Cc:        freebsd-hackers@freebsd.org, Ivan Voras <ivoras@fer.hr>
Subject:   Re: Writing a plain text file to disk from kernel space
Message-ID:  <86sl9qtpd1.fsf@dwp.des.no>
In-Reply-To: <46515DE0.20209@room52.net> (Lawrence Stewart's message of "Mon\,  21 May 2007 18\:52\:48 %2B1000")
References:  <4649349D.4060101@room52.net> <200705150847.38838.marc.loerner@hob.de> <46499491.2010205@room52.net> <f2j5hf$hap$2@sea.gmane.org> <46515DE0.20209@room52.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Lawrence Stewart <lstewart@room52.net> writes:
> I suspect that you can't use a file descriptor that was opened in one
> thread in a completely different thread, but I'm not sure if this is
> true, and if it is true, how to get around it.

A file descriptor is an index into a file table.  Different threads have
different file tables.

If you want to read from or write to files within the kernel, you need
to operate directly on vnodes, not on file descriptors.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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