On 7 Sep 2015 23:25, wrote:
>
> On Mon, 07 Sep 2015 12:10:56 +0530, Pria Mn said:
>
> > return valid dentry value. My requirement is to fetch directory name
from
> > filepath.
>
> First off, unless this is a class assignment, your *requirement* isn't
> to fetch a directory name.
>
> Fetching the d
On Mon, 07 Sep 2015 12:10:56 +0530, Pria Mn said:
> return valid dentry value. My requirement is to fetch directory name from
> filepath.
First off, unless this is a class assignment, your *requirement* isn't
to fetch a directory name.
Fetching the directory name is a *solution* you're thinking
On Mon, Sep 7, 2015 at 1:11 PM, Pria Mn wrote:
> Hi Rohan,
>
> I am using 3.10.0-123.el7.x86_64 kernel (RHEL-7). I am trying to obtain
> 'dentry' value from file path information. For this: earlier I had written
> the code as below :
>
> #if(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
>
> err=
Hi Rohan,
I am using 3.10.0-123.el7.x86_64 kernel (RHEL-7). I am trying to obtain
'dentry' value from file path information. For this: earlier I had written
the code as below :
#if(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
err= kern_path_parent(tmp,nd);
#else
err= path_lookup(tmp, 0, nd);
On Mon, Sep 7, 2015 at 12:10 PM, Pria Mn wrote:
> Hi,
>
>
>
> I happened to come across the below discussion.
>
>
>
> http://lists.kernelnewbies.org/pipermail/kernelnewbies/2012-August/005914.html
>
>
> I am having a similar issue.
>
> I am using Rhel7-3.10.0-123
>
> kernel. I tried all the optio
Hi,
I happened to come across the below discussion.
http://lists.kernelnewbies.org/pipermail/kernelnewbies/2012-August/005914.html
I am having a similar issue.
I am using Rhel7-3.10.0-123
kernel. I tried all the options that are mentioned above and none of the
api's
including kern_path()