Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2020 20:10:02 +0530
From:      Arpan Palit <babupalit@gmail.com>
To:        freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org,  freebsd-drivers@freebsd.org
Subject:   How to access a user space file from kernel space in FreeBSD.
Message-ID:  <CAF3txfi1mNcmQEFDfOx01AA2aWza1Fteb7fisC%2BtWVQccoV77Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I am working on (kernel)driver ioctl implementation for file read/write,
where I need to know what are API's which can expose to read,write and
close user space file from kernel space. In general I need to know the
answer for the below questions.

i).   How to open a user space file from driver(kernel space) ?
ii).  How to create a new user space file from driver(kernel space) ?
iii). How to get file parameters like size of the file ?
iv). How to read/write the files from the driver(kernel space) ?

Thanks & Regards,
Arpan Palit



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF3txfi1mNcmQEFDfOx01AA2aWza1Fteb7fisC%2BtWVQccoV77Q>