Date: Fri, 27 Apr 2007 12:14:13 -0700 From: "Kip Macy" <kip.macy@gmail.com> To: "John Baldwin" <jhb@freebsd.org>, "=?ISO-8859-1?Q?Marc_L=F6rner?=" <marc.loerner@hob.de>, freebsd-hackers@freebsd.org Subject: Re: Usage of kern_* functions in kernel Message-ID: <b1fa29170704271214p24f90e92y8a7fa164ec06e2f2@mail.gmail.com> In-Reply-To: <200704271151.54720.jhb@freebsd.org> References: <200704261408.19885.marc.loerner@hob.de> <200704261349.35661.jhb@freebsd.org> <200704270843.16908.marc.loerner@hob.de> <200704271151.54720.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
For core files and checkpoints that isn't possible. -Kip On 4/27/07, John Baldwin <jhb@freebsd.org> wrote: > On Friday 27 April 2007 02:43:16 am Marc L=F6rner wrote: > > On Thursday 26 April 2007 19:49, John Baldwin wrote: > > > 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 > > > > (kern_open, kern_close, kern_pwritev, kern_preadv) that are located= in > > > > vfs_syscalls.c > > > > > > > > When I use kern_open to open a file within the kernel, I get an err= or. > > > > When I use the normal vn_open function instead, all works well. > > > > > > > > So my question is which functions are recommended by you > kernel-hackers > > > > for use within kernelspace? > > > > > > > > And here a second question: Is it possible to open/use the console > driver > > > > in kernelspace within the functions mentioned above? > > > > If not, can you give me some pointers on where I can find this > > > > information! > > > > > > kern_XXX are generally used by system calls such as alternative ABIs, > etc. > > > > so, you would recommend using the vn_* functions instead? > > In general userland should open files rather than the kernel. > > -- > John Baldwin > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b1fa29170704271214p24f90e92y8a7fa164ec06e2f2>