Writing to a file

Sonja Milicic tanarri at geri.cc.fer.hr
Sat May 5 18:58:38 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I'm working on an IO logging utility for FreeBSD as my GSoC project, and
I have some questions about writing a kernel functions that would open
an existing or create a new file (with the file name as a parameter,
returns a vnode * for the file) and write data to that file (with
pointer to data as parameter). I've found some functions in existing
code that do similar things and might help me understand how to solve my
problem, but as there isn't much documentation out there I still don't
understand a lot of things. 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.?

Thanks in advance,
Sonja

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGPM4eLfhGYNm8UfsRAiHjAJ4rIhKj2IKpnFj50zSs3IpxymWOzACfcER5
enTeEvaD/syyRQZmtDmlDIU=
=xH5D
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list