Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2007 13:49:35 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Marc =?iso-8859-1?q?L=F6rner?= <marc.loerner@hob.de>
Subject:   Re: Usage of kern_* functions in kernel
Message-ID:  <200704261349.35661.jhb@freebsd.org>
In-Reply-To: <200704261408.19885.marc.loerner@hob.de>
References:  <200704261408.19885.marc.loerner@hob.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 26 April 2007 08:08:19 am Marc L=F6rner wrote:
> Hello,
> I googled but found nothing about the usage of the kern_* functions=20
> (kern_open, kern_close, kern_pwritev, kern_preadv) that are located in=20
> vfs_syscalls.c
>=20
> When I use kern_open to open a file within the kernel, I get an error.=20
> When I use the normal vn_open function instead, all works well.
>=20
> So my question is which functions are recommended by you kernel-hackers=20
> for use within kernelspace?
>=20
> And here a second question: Is it possible to open/use the console driver=
 in=20
> kernelspace within the functions mentioned above?=20
> If not, can you give me some pointers on where I can find this informatio=
n!

kern_XXX are generally used by system calls such as alternative ABIs, etc.

=2D-=20
John Baldwin



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