From owner-freebsd-fs@FreeBSD.ORG Mon Jul 23 17:40:25 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6D30106566C for ; Mon, 23 Jul 2012 17:40:25 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 950DD8FC0C for ; Mon, 23 Jul 2012 17:40:25 +0000 (UTC) Received: from JRE-MBP-2.local (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id q6NHeNY7034195 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 23 Jul 2012 10:40:24 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <500D8C82.2040904@freebsd.org> Date: Mon, 23 Jul 2012 10:40:18 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Mehdi Esmaeelpour References: <2086824705.663013.1342955443184.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: vnode X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 17:40:25 -0000 On 7/23/12 1:30 AM, Mehdi Esmaeelpour wrote: > On Sun, Jul 22, 2012 at 3:40 PM, Rick Macklem wrote: > >> Mehdi Esmaeelpour wrote: >>> folks >>> >>> How i use vn_rdwr() to write to a file? i am starter and don't know >>> anything! but i search for this but cannot find anything. >>> >> I'd say avoid reading/writing files from within the kernel if possible, >> but if you must do it, you can look at the use of NFSD_RDWR in >> sys/fs/nfsserver/nfs_nfsdstate.c. (NFSD_RDWR() is just a macro that becomes >> a call to vn_rdwr(). Look in sys/fs/nfs/nfsport.h for the macro. >> >> rick >> >>> Thanks >>> _______________________________________________ >>> freebsd-fs@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >>> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > > Thanks rick but that file is complex ... and I'm beginner. there are several parts of the kernel that write out information directly. try looking at the ALQ code. (used with KTR) (ktrdump etc.) > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > >