0

I need to create a copy of a file with a different name in kernel space. I'm creating a new file with filp_open (even though it's not really clear how I would specify the O_CREAT flag as it doesn't take flags, at least in the latest kernels) but I'm not really sure how to proceed once I have both this and the original file opened.

Should I simply use kernel_read and kernel_write on the descriptors? Or what else?

memememe
  • 663
  • 6
  • 21

0 Answers0