Can we do perform a C style file Read/Write from within a ARP
module
Rick Macklem
rmacklem at uoguelph.ca
Tue Dec 27 15:13:22 UTC 2011
perryh wrote:
> Jason Hellenthal <jhell at DataIX.net> wrote:
> >
> > See siftr(4). This module writes to a file.
>
> Is siftr(4) new since 8.1?
>
> $ man siftr
> No manual entry for siftr
> $ cd /usr/ports
> $ ls -d */*siftr*
> ls: */*siftr*: No such file or directory
>
You can look at:
http://people.freebsd.org/~rmacklem/nfs_clpackrat.c
I won't say it is the best or even a good way to do it, but
this code reads/writes files directly in the kernel.
rick
More information about the freebsd-net
mailing list