I have to read an entire file in a buffer inside a kernel module I'm writing. I started following as written here
but, I'm not clear how to retrieve the file size, to allocate the memory for the array buffer. I could not find a good documentation of the VFS functions. (I'm working on 3.2 kernel).
How can achieve that? Thanks