From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 20 06:48:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5817F106564A for ; Fri, 20 Jun 2008 06:48:21 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 17BA08FC0A for ; Fri, 20 Jun 2008 06:48:21 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id CEC061CCCF; Fri, 20 Jun 2008 08:48:19 +0200 (CEST) Date: Fri, 20 Jun 2008 08:48:19 +0200 From: Ed Schouten To: Lukasz Jaroszewski Message-ID: <20080620064819.GQ93496@hoeg.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="magLDk5D4XGaUXcd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Hackers Subject: Re: Accessing char device from inside the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2008 06:48:21 -0000 --magLDk5D4XGaUXcd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Lukasz, * Lukasz Jaroszewski 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 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--