Accessing char device from inside the kernel
Ed Schouten
ed at 80386.nl
Fri Jun 20 06:48:21 UTC 2008
Hello Lukasz,
* 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'.
Yours,
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
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
mailing list