Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2006 12:21:53 -0600
From:      Kim Shrier <kim@tinker.com>
To:        Joseph Koshy <joseph.koshy@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: The proper way to open a file from inside the kernel
Message-ID:  <EA22A73A-AB17-455F-9B13-060D0C9D3D20@tinker.com>
In-Reply-To: <84dead720608232056o183976ffidc1c506434e754b9@mail.gmail.com>
References:  <77B636A3-5AED-41E6-AB98-91178E1D10D8@tinker.com> <84dead720608232056o183976ffidc1c506434e754b9@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 23, 2006, at 9:56 PM, Joseph Koshy wrote:

>> I am experimenting with modifying a kernel module and I need
>> to be able to open/read/write/close a file from within the
>> module.  Is there a preferred way to do this?  Are there any
>> locking or buffering issues that I need to be aware of?
>
> sys/kern/kern_alq.c:alq_open() and sys/kern/kern_ktrace.c:ktrace()
> have examples.
>
> --
> FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy
>


Thank you.

Kim
--
  Kim Shrier - principal, Shrier and Deihl - mailto:kim@tinker.com
Remote Unix Network Admin, Security, Internet Software Development
   Tinker Internet Services - Superior FreeBSD-based Web Hosting
                      http://www.tinker.com/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EA22A73A-AB17-455F-9B13-060D0C9D3D20>