I am going to write Lexical, which will be part of the kernel module in which I will parse the file and return tokens. For this, I may need to use functions such as fopen, getc, putc, fseek , etc., which are obviously functions of user space. I was looking for alternatives to these functions in kernel space, and I found functions like open, filp_open, sys_open , etc., which, I think, would be okay for me. But I want to know if functions like getc, putc, seek , etc. are available in kernel space. (Which is very convenient in file operations)?
source share