Accessing char device from inside the kernel

Ed Schouten ed at
Fri Jun 20 06:48:21 UTC 2008

Hello Lukasz,

* Lukasz Jaroszewski <sigtrm at> 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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url :

More information about the freebsd-hackers mailing list