From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 19 17:41:45 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 106301065672 for ; Thu, 19 Jun 2008 17:41:45 +0000 (UTC) (envelope-from sigtrm@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id B55BB8FC23 for ; Thu, 19 Jun 2008 17:41:44 +0000 (UTC) (envelope-from sigtrm@gmail.com) Received: by yx-out-2324.google.com with SMTP id 31so153364yxl.13 for ; Thu, 19 Jun 2008 10:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=sKGTs13cUxR9ACY8Kuh9Pu0niyiuLDhBmgO98X3a6mM=; b=u/aIyFHuo119GkkyeZV3XUAuf/rcd6GFsAnxIeBTuSE94pmD8LeyZW2Ub6R06cG8G1 W8pxEunIk7BCxXln+Ph0UpF41+r8bApJJ0wWxhHC3ud3GpHNgLTtpF8FEUKhsXdVY7de MpPmqIRPtc7wGM1SAfV3eH8KkLTkxACKlKGtg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=EM/UKWBNu4S2vWLJy6gCS+yG70/ktykI3yqP248N/YtCbMdKhjQVDNqhju7R1UBMke cCAya9R5plPxjVCLIu5i6yhdh+f6ZFSj76yUkecQae8oUya6ljWp/jgrixllS0l+6iu/ fqVLcITcLw3CpE6ZgsoabGvfNpJRuiiNpFo4I= Received: by 10.114.169.20 with SMTP id r20mr2993434wae.198.1213897303534; Thu, 19 Jun 2008 10:41:43 -0700 (PDT) Received: by 10.114.88.15 with HTTP; Thu, 19 Jun 2008 10:41:43 -0700 (PDT) Message-ID: Date: Thu, 19 Jun 2008 19:41:43 +0200 From: "Lukasz Jaroszewski" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Thu, 19 Jun 2008 17:41:45 -0000 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. Best regards LVJ