thank you rajat.<br><br><div class="gmail_quote">On Thu, Jan 6, 2011 at 6:10 PM, Rajat Sharma <span dir="ltr"><<a href="mailto:fs.rajat@gmail.com">fs.rajat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Mohit,<br>
<br>
Please refer to ULK 3rd edition Section 12.5 pathname lookup, it says:<br>
<br>
struct qstr last Last component of the pathname (used<br>
when the LOOKUP_PARENT flag is set)<br>
<br>
so if LOOKUP_PARENT is set, last refers to the last name components,<br>
e.g. in /a/b/c it reference to c while path->dentry->qstr will refer<br>
to b because you intended to lookup parent not the last component.<br>
Note that path is an output parameter while last is input parameter.<br>
<br>
Rajat<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Jan 6, 2011 at 5:18 PM, mohit verma <<a href="mailto:mohit89mlnc@gmail.com">mohit89mlnc@gmail.com</a>> wrote:<br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: mohit verma <<a href="mailto:mohit89mlnc@gmail.com">mohit89mlnc@gmail.com</a>><br>
> Date: Thu, Jan 6, 2011 at 5:10 PM<br>
> Subject: nameidata data structure again<br>
> To: kernelnewbies <<a href="mailto:kernelnewbies@nl.linux.org">kernelnewbies@nl.linux.org</a>><br>
><br>
><br>
> hi folks,<br>
><br>
><br>
> we have qstr data structure part in nameidata structure in name resolution.<br>
> so it may work like this :<br>
><br>
> nameidata->path->dentry->qstr.<br>
><br>
> it is the real name component in a path name for that directory ro file (i<br>
> think so).<br>
><br>
> so what is the need of having another qstr like:<br>
><br>
> namidata->qstr (ie. last)<br>
><br>
><br>
> in nameidata structure.<br>
> sorry ,it may seem foolish to u guys but i ............<br>
><br>
> thanks in advance.<br>
> --<br>
> ........................<br>
> MOHIT VERMA<br>
><br>
><br>
><br>
> --<br>
> ........................<br>
> MOHIT VERMA<br>
><br>
</div></div>> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>........................<div><i>MOHIT VERMA</i></div><br>