vnode

Mehdi Esmaeelpour mehdi.esmaeelpour at gmail.com
Mon Jul 23 08:30:04 UTC 2012


On Sun, Jul 22, 2012 at 3:40 PM, Rick Macklem <rmacklem at 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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> > To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>


Thanks rick but that file is complex ... and I'm beginner.


More information about the freebsd-fs mailing list