Hi Rajat, I couldn't find kern_path function in Linux Kernel 2.6.27.20. Could you please let me know how to get the file size in detail?
Thanks, Dev On Mon, Oct 25, 2010 at 8:21 PM, Rajat Sharma <[email protected]> wrote: > Do a lookup of the file using kern_path kernel function and then use > vfs_getattr on file. The kstat->size should be our answer. > > > On Tue, Oct 26, 2010 at 5:40 AM, Dev Null <[email protected]> wrote: > >> Hello All, >> >> I need to do file operations from my driver to upload firmware to another >> processor DRAM memory. I need to know how to get the file size from the >> kernel module. >> >> I am using flip_open, flip_close, vfs_read, vfs_write for file >> operations. >> >> Could you please post your comments to my queries? >> >> Thanks, >> Dev Null >> > >
