I am trying to write a module to read a file (in kernel mode). However, problem is kernel version 2.6.30 and after does, not export sys_read()
I have changed code to
struct file* file_open(const char* path, int flags, int rights)&int file_read(struct file* file, unsigned long long offset, unsigned char* data, unsigned int size)
to read file.
here I am having confusion in use of parameters int rights in file_open() (is it same as mode in 'open()').
Please suggest me with an example or help me to get man page for file_open().