Accessing char device from inside the kernel
ed at 80386.nl
Fri Jun 20 06:48:21 UTC 2008
* Lukasz Jaroszewski <sigtrm at gmail.com> wrote:
> Hi, as described in topic. How one should access cdev for writing from
> kernel-level. What is the proper way to do that ?
> I will be thankful for any tips and few lines of example code would be
> just great.
I think the code in sys/kern/tty_cons.c should be a good example of
that. Search for '->d_write'.
Ed Schouten <ed at 80386.nl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080620/b0ec91a1/attachment.pgp
More information about the freebsd-hackers