From owner-freebsd-hackers@FreeBSD.ORG Sun May 6 09:53:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6842616A403 for ; Sun, 6 May 2007 09:53:29 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by mx1.freebsd.org (Postfix) with ESMTP id 2957B13C4B7 for ; Sun, 6 May 2007 09:53:28 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so1338959nze for ; Sun, 06 May 2007 02:53:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XjVpzdPYNWJkLe0zjAdG4Oj16eU5KJfGT/yumNkgvCxiu3BzgCT/9evMJZv0ng8YKekA3ukWdoOnzaXprv/niJVAUKqF4f2mWErP3CQTBB+wuir3hNnCdaf4uJ9Ew25cSazNwqzE5XUsVDL+GDTv6msg86EIui9BU5eMbvIqjtw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XnBZd4k9pTDHx7hPHf1THpTvwS3pXraS8g/oCGUAqFLF2pstlWJm/ZpnvHcbHiA/n1J42DTAn026crKUI2KDGGdbQGzdwSznHIks/wAu0SkLPrAHX8gIOlWRNk9pK+y7oHV/k86QDVIZwivy106zorzKL5MgceyxKXd/qqJ167c= Received: by 10.65.248.19 with SMTP id a19mr8197043qbs.1178443698427; Sun, 06 May 2007 02:28:18 -0700 (PDT) Received: by 10.65.81.13 with HTTP; Sun, 6 May 2007 02:28:18 -0700 (PDT) Message-ID: <84dead720705060228t2c79529cr27a90e34bbbb3e7a@mail.gmail.com> Date: Sun, 6 May 2007 09:28:18 +0000 From: "Joseph Koshy" To: "Sonja Milicic" In-Reply-To: <463CCE1E.1080906@geri.cc.fer.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <463CCE1E.1080906@geri.cc.fer.hr> Cc: freebsd-hackers@freebsd.org Subject: Re: Writing to a file 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: Sun, 06 May 2007 09:53:29 -0000 > So, could anyone please give me a detailed > explanation of how to open a file in kernel and write to it - best data > types to use, functions, what to look out for, maybe a link to tutorial > or manual that deals with this (if such a thing exists), etc.? I'm not aware of such a tutorial. I would suggest that you start with the source for alq_open() in "/sys/kern/kern_alq.c", looking up the manual pages for all the functions it calls as needed. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy