Date: Tue, 15 May 2007 07:47:38 +0100 From: Marc =?iso-8859-1?q?L=F6rner?= <marc.loerner@hob.de> To: freebsd-hackers@freebsd.org Cc: Lawrence Stewart <lstewart@room52.net> Subject: Re: Writing a plain text file to disk from kernel space Message-ID: <200705150847.38838.marc.loerner@hob.de> In-Reply-To: <4649349D.4060101@room52.net> References: <4649349D.4060101@room52.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Lawrence, in file kern/vfs_syscalls.c you can see the kern_open function that uses vn_open to open a file/vnode. There are more vn_* functions like vn_rdwr for reading and writing to a vnode or vn_close to close a vnode. To see how theses functions work, I suggest you grep for them in the kernel-files. BTW, you can get an thread-struct pointer from curthread (c.f. sys/pcpu.h). HTH, Marc Lörner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705150847.38838.marc.loerner>