I need to open a file as a struct file
in kernel space and return the file's int
descriptor to the userspace, and I also need to pass an int
descriptor to the kernel space and be able to retrieve the corresponding kernel struct file
.
How do I do that? I open the files in the kernel with filp_open
.