Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2012 10:40:18 -0700
From:      Julian Elischer <julian@freebsd.org>
To:        Mehdi Esmaeelpour <mehdi.esmaeelpour@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: vnode
Message-ID:  <500D8C82.2040904@freebsd.org>
In-Reply-To: <CAEu=a8hAWvR2tV5v-4v_OA%2BT2ZZO4c6SpAYNxKKR3irimtVugQ@mail.gmail.com>
References:  <CAEu=a8j3=70xsOc7BXd2Hq5hVYBbXb_cWGX4xzJTP8v-0wYodg@mail.gmail.com> <2086824705.663013.1342955443184.JavaMail.root@erie.cs.uoguelph.ca> <CAEu=a8hAWvR2tV5v-4v_OA%2BT2ZZO4c6SpAYNxKKR3irimtVugQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/23/12 1:30 AM, Mehdi Esmaeelpour wrote:
> On Sun, Jul 22, 2012 at 3:40 PM, Rick Macklem <rmacklem@uoguelph.ca> 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"
>
>





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