Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2008 08:48:19 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Lukasz Jaroszewski <sigtrm@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Accessing char device from inside the kernel
Message-ID:  <20080620064819.GQ93496@hoeg.nl>
In-Reply-To: <aed2bfaf0806191041r5d313297i5466e7d74ec1494d@mail.gmail.com>
References:  <aed2bfaf0806191041r5d313297i5466e7d74ec1494d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--magLDk5D4XGaUXcd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Lukasz,

* Lukasz Jaroszewski <sigtrm@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,
--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--magLDk5D4XGaUXcd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkhbUrMACgkQ52SDGA2eCwW4XQCfZQ3Nia2pHMDggmDu2ZcogclW
RBYAn3mjopdV0icMpLm3HvFP5W91D4s2
=uqNO
-----END PGP SIGNATURE-----

--magLDk5D4XGaUXcd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080620064819.GQ93496>