Re: Linux Kernel | Process Open Files

2016-06-23 Thread Pranay Srivastava
On Thu, Jun 23, 2016 at 11:55 AM, Shahab Khalid  wrote:
> Hi all,
>
> I am trying to get process open files of active processes. I am reading
> linux dump. I am able to get actives process. I am trying to reach d_name in
> dentry structure but unfortunately the I am receiving the denrty ZERO (0).
>
> I am reaching the dentry as
>
> task_structure->files_struct->fdtable->file->path->dentry
>
> till struct path I am receiving some address but dentry is zero.

code listing would be more helpful.

>
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
---P.K.S

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Linux Kernel | Process Open Files

2016-06-23 Thread Shahab Khalid
Hi all,

I am trying to get process open files of active processes. I am reading
linux dump. I am able to get actives process. I am trying to reach d_name
in dentry structure but unfortunately the I am receiving the denrty ZERO
(0).

I am reaching the dentry as

task_structure->files_struct->fdtable->file->path->dentry

till struct path I am receiving some address but dentry is zero.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies