I'm currently building a kernal module that creates a device under /dev and I want to store some data inside of the device file. However, every time I try to write to the device file, nothing is being saved to that specific file.
Currently, I've tried to use device_write/device_read with no luck since the data I'm writing does not save in the kernel space after running the userprogram again. I've also tried using ioctl calls from the user-program and using copy_from_user and copy_to_user but that also doesn't save any data.