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
>

Reply via email to