Re: Usage of kern_* functions in kernel
- From: John Baldwin <jhb@xxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 11:51:54 -0400
On Friday 27 April 2007 02:43:16 am Marc Lörner wrote:
On Thursday 26 April 2007 19:49, John Baldwin wrote:driver
On Thursday 26 April 2007 08:08:19 am Marc Lörner 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 error.
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
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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Usage of kern_* functions in kernel
- From: Kip Macy
- Re: Usage of kern_* functions in kernel
- References:
- Usage of kern_* functions in kernel
- From: Marc Lörner
- Re: Usage of kern_* functions in kernel
- From: John Baldwin
- Re: Usage of kern_* functions in kernel
- From: Marc Lörner
- Usage of kern_* functions in kernel
- Prev by Date: Re: msleep() on recursivly locked mutexes
- Next by Date: Re: msleep() on recursivly locked mutexes
- Previous by thread: Re: Usage of kern_* functions in kernel
- Next by thread: Re: Usage of kern_* functions in kernel
- Index(es):
Relevant Pages
|
|