* nameidata data structure again
@ 2011-01-06 11:40 mohit verma
2011-01-06 11:48 ` Fwd: " mohit verma
0 siblings, 1 reply; 4+ messages in thread
From: mohit verma @ 2011-01-06 11:40 UTC (permalink / raw)
To: kernelnewbies
hi folks,
we have qstr data structure part in nameidata structure in name resolution.
so it may work like this :
nameidata->path->dentry->qstr.
it is the real name component in a path name for that directory ro file (i
think so).
so what is the need of having another qstr like:
namidata->qstr (ie. last)
in nameidata structure.
sorry ,it may seem foolish to u guys but i ............
thanks in advance.
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110106/6f29d12c/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Fwd: nameidata data structure again
2011-01-06 11:40 nameidata data structure again mohit verma
@ 2011-01-06 11:48 ` mohit verma
2011-01-06 12:40 ` Rajat Sharma
0 siblings, 1 reply; 4+ messages in thread
From: mohit verma @ 2011-01-06 11:48 UTC (permalink / raw)
To: kernelnewbies
---------- Forwarded message ----------
From: mohit verma <mohit89mlnc@gmail.com>
Date: Thu, Jan 6, 2011 at 5:10 PM
Subject: nameidata data structure again
To: kernelnewbies <kernelnewbies@nl.linux.org>
hi folks,
we have qstr data structure part in nameidata structure in name resolution.
so it may work like this :
nameidata->path->dentry->qstr.
it is the real name component in a path name for that directory ro file (i
think so).
so what is the need of having another qstr like:
namidata->qstr (ie. last)
in nameidata structure.
sorry ,it may seem foolish to u guys but i ............
thanks in advance.
--
........................
*MOHIT VERMA*
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110106/43ab47f5/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* nameidata data structure again
2011-01-06 11:48 ` Fwd: " mohit verma
@ 2011-01-06 12:40 ` Rajat Sharma
2011-01-06 17:42 ` mohit verma
0 siblings, 1 reply; 4+ messages in thread
From: Rajat Sharma @ 2011-01-06 12:40 UTC (permalink / raw)
To: kernelnewbies
Hi Mohit,
Please refer to ULK 3rd edition Section 12.5 pathname lookup, it says:
struct qstr last Last component of the pathname (used
when the LOOKUP_PARENT flag is set)
so if LOOKUP_PARENT is set, last refers to the last name components,
e.g. in /a/b/c it reference to c while path->dentry->qstr will refer
to b because you intended to lookup parent not the last component.
Note that path is an output parameter while last is input parameter.
Rajat
On Thu, Jan 6, 2011 at 5:18 PM, mohit verma <mohit89mlnc@gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: mohit verma <mohit89mlnc@gmail.com>
> Date: Thu, Jan 6, 2011 at 5:10 PM
> Subject: nameidata data structure again
> To: kernelnewbies <kernelnewbies@nl.linux.org>
>
>
> hi folks,
>
>
> we have qstr data structure part in nameidata structure in name resolution.
> so it may work like this :
>
> ?nameidata->path->dentry->qstr.
>
> it? is the real name component in a? path name for that directory ro file (i
> think so).
>
> so what is? the need of having another qstr like:
>
> namidata->qstr (ie. last)
>
>
> in nameidata structure.
> sorry ,it may seem? foolish to u guys but i ............
>
> thanks in advance.
> --
> ........................
> MOHIT VERMA
>
>
>
> --
> ........................
> MOHIT VERMA
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* nameidata data structure again
2011-01-06 12:40 ` Rajat Sharma
@ 2011-01-06 17:42 ` mohit verma
0 siblings, 0 replies; 4+ messages in thread
From: mohit verma @ 2011-01-06 17:42 UTC (permalink / raw)
To: kernelnewbies
thank you rajat.
On Thu, Jan 6, 2011 at 6:10 PM, Rajat Sharma <fs.rajat@gmail.com> wrote:
> Hi Mohit,
>
> Please refer to ULK 3rd edition Section 12.5 pathname lookup, it says:
>
> struct qstr last Last component of the pathname (used
> when the LOOKUP_PARENT flag is set)
>
> so if LOOKUP_PARENT is set, last refers to the last name components,
> e.g. in /a/b/c it reference to c while path->dentry->qstr will refer
> to b because you intended to lookup parent not the last component.
> Note that path is an output parameter while last is input parameter.
>
> Rajat
>
>
>
> On Thu, Jan 6, 2011 at 5:18 PM, mohit verma <mohit89mlnc@gmail.com> wrote:
> >
> >
> > ---------- Forwarded message ----------
> > From: mohit verma <mohit89mlnc@gmail.com>
> > Date: Thu, Jan 6, 2011 at 5:10 PM
> > Subject: nameidata data structure again
> > To: kernelnewbies <kernelnewbies@nl.linux.org>
> >
> >
> > hi folks,
> >
> >
> > we have qstr data structure part in nameidata structure in name
> resolution.
> > so it may work like this :
> >
> > nameidata->path->dentry->qstr.
> >
> > it is the real name component in a path name for that directory ro file
> (i
> > think so).
> >
> > so what is the need of having another qstr like:
> >
> > namidata->qstr (ie. last)
> >
> >
> > in nameidata structure.
> > sorry ,it may seem foolish to u guys but i ............
> >
> > thanks in advance.
> > --
> > ........................
> > MOHIT VERMA
> >
> >
> >
> > --
> > ........................
> > MOHIT VERMA
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> >
>
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110106/3c7eeb58/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-06 17:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06 11:40 nameidata data structure again mohit verma
2011-01-06 11:48 ` Fwd: " mohit verma
2011-01-06 12:40 ` Rajat Sharma
2011-01-06 17:42 ` mohit verma
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.