Date: Wed, 18 Jul 2001 14:32:39 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: suid <suid@kjell.utb.falun.se> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: KLD Programming Message-ID: <Pine.SOL.4.21.0107181430230.14676-100000@jade> In-Reply-To: <20010718182910.902D2AE08@kjell.utb.falun.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes. But it is not easy. Look at code vfs_vnops.c. You can let a user process open a file and then push the file descriptor into kernel via a special system call. Search the mailing list archive and you will find discussions on how to add a new system call. -Zhihui On Wed, 18 Jul 2001, suid wrote: > > Godday. > > I'm quite new to KLD-programming and have a question: > > Is it possible to read/write to files from a module without > too much effort, but still staying in kernelspace? > > > /suid- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.21.0107181430230.14676-100000>