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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to