Re: File size from Linux Kernel Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <fs.rajat@xxxxxxxxx> 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 <devnullfin@xxxxxxxxx> 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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux