Re: Needs the complete definition "user_path_walk()"

2010-01-27 Thread Manish Katiyar
On Wed, Jan 27, 2010 at 12:36 PM, waqar afridi  wrote:
> Hello Every One
>
> This is my First mail to this community, so dont know much about the Rules
> and Regulations.
In general doing google is a good idea.
>
> I want the Definition of "user_path_walk()" function, If any one had, Please
> send it and if not, can any one tell me where could I find it.
This is the first link in google.
http://www.developerweb.net/forum/archive/index.php/t-3466.html
>
> Thanx In advance
>
> --
> Waqar Afridi
>



-- 
Thanks -
Manish
==
[$\*.^ -- I miss being one of them
==

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: Needs the complete definition "user_path_walk()"

2010-01-27 Thread Manish Katiyar
On Wed, Jan 27, 2010 at 1:35 PM, waqar afridi  wrote:
> I wasnt expecting that much quick reply, Zellux and specially Manish for for
> sharing this great Ocean of Knowledge (Google)...
>
> On Wed, Jan 27, 2010 at 12:33 PM, Manish Katiyar  wrote:
>>
>> On Wed, Jan 27, 2010 at 12:36 PM, waqar afridi 
>> wrote:
>> > Hello Every One
>> >
>> > This is my First mail to this community, so dont know much about the
>> > Rules
>> > and Regulations.
>> In general doing google is a good idea.
>> >
>> > I want the Definition of "user_path_walk()" function, If any one had,
>> > Please
>> > send it and if not, can any one tell me where could I find it.

I guess it was removed after 2.6.6 . And now this function is called
as user_path. Look at the following commit which can give you some
idea.

commit 2d8f30380ab8c706f4e0a8f1aaa22b5886e9ac8a
Author: Al Viro 
Date:   Tue Jul 22 09:59:21 2008 -0400

[PATCH] sanitize __user_walk_fd() et.al.
...
...
+asmlinkage long compat_sys_statfs(const char __user *pathname, struct
compat_statfs __user *buf)
 {
-   struct nameidata nd;
+   struct path path;
int error;

-   error = user_path_walk(path, &nd);
+   error = user_path(pathname, &path);
if (!error) {
struct kstatfs tmp;
-   error = vfs_statfs(nd.path.dentry, &tmp);
+   error = vfs_statfs(path.dentry, &tmp);
if (!error)
error = put_compat_statfs(buf, &tmp);
-   path_put(&nd.path);
+   path_put(&path);
}

...


Thanks -
Manish


>> This is the first link in google.
>> http://www.developerweb.net/forum/archive/index.php/t-3466.html
>
> I already had tried this link but it did gave me anything, The reason might
> be that I am newbie, But things will improve...
>
> Thanx Alot
>
>> >
>> > Thanx In advance
>> >
>> > --
>> > Waqar Afridi
>> >
>>
>>
>>
>> --
>> Thanks -
>> Manish
>> ==
>> [$\*.^ -- I miss being one of them
>> ==
>
>
>
> --
> Waqar Afridi
>



-- 
Thanks -
Manish
==
[$\*.^ -- I miss being one of them
==

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: Needs the complete definition "user_path_walk()"

2010-01-27 Thread waqar afridi
Thanx Mulyadi, the Link was Extremely Useful, Now digging up for more, I
will Update this thread Sooner...

On Wed, Jan 27, 2010 at 12:55 PM, Mulyadi Santosa  wrote:

> Hi.
>
> On Wed, Jan 27, 2010 at 2:06 PM, waqar afridi 
> wrote:
> > Hello Every One
> >
> > This is my First mail to this community, so dont know much about the
> Rules
> > and Regulations.
>
> Don't worry, most people here are friendly :) They won't kick your
> butt just because you're asking too much or too hard. Most likely,
> you'll be ignored if your question is either OOT or nobody knows the
> answer :)
>
> > I want the Definition of "user_path_walk()" function, If any one had,
> Please
> > send it and if not, can any one tell me where could I find it.
>
> Hmm, strange, online code explorer at lxr.linux.no (specificly,  the
> one which indexes 2.6.32) can not find such function. Which kernel
> function do you refer, anyway?
>
> However, just guessing, perhaps that function took a complete path as
> its parameter and returns the related inode that corresponds to it?
> And maybe...it is named "walk" because the functions iterates it from
> root directory down to the directory which owns the file. Of course,
> as always, inode and dentry cache are looked up first.
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>



-- 
Waqar Afridi


Re: Needs the complete definition "user_path_walk()"

2010-01-27 Thread waqar afridi
I wasnt expecting that much quick reply, Zellux and specially Manish for for
sharing this great Ocean of Knowledge (Google)...

On Wed, Jan 27, 2010 at 12:33 PM, Manish Katiyar  wrote:

> On Wed, Jan 27, 2010 at 12:36 PM, waqar afridi 
> wrote:
> > Hello Every One
> >
> > This is my First mail to this community, so dont know much about the
> Rules
> > and Regulations.
> In general doing google is a good idea.
> >
> > I want the Definition of "user_path_walk()" function, If any one had,
> Please
> > send it and if not, can any one tell me where could I find it.
> This is the first link in google.
> http://www.developerweb.net/forum/archive/index.php/t-3466.html
>

I already had tried this link but it did gave me anything, The reason might
be that I am newbie, But things will improve...

Thanx Alot

>
> > Thanx In advance
> >
> > --
> > Waqar Afridi
> >
>
>
>
> --
> Thanks -
> Manish
> ==
> [$\*.^ -- I miss being one of them
> ==
>



-- 
Waqar Afridi


Re: Needs the complete definition "user_path_walk()"

2010-01-26 Thread Mulyadi Santosa
Hi.

On Wed, Jan 27, 2010 at 2:06 PM, waqar afridi  wrote:
> Hello Every One
>
> This is my First mail to this community, so dont know much about the Rules
> and Regulations.

Don't worry, most people here are friendly :) They won't kick your
butt just because you're asking too much or too hard. Most likely,
you'll be ignored if your question is either OOT or nobody knows the
answer :)

> I want the Definition of "user_path_walk()" function, If any one had, Please
> send it and if not, can any one tell me where could I find it.

Hmm, strange, online code explorer at lxr.linux.no (specificly,  the
one which indexes 2.6.32) can not find such function. Which kernel
function do you refer, anyway?

However, just guessing, perhaps that function took a complete path as
its parameter and returns the related inode that corresponds to it?
And maybe...it is named "walk" because the functions iterates it from
root directory down to the directory which owns the file. Of course,
as always, inode and dentry cache are looked up first.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Needs the complete definition "user_path_walk()"

2010-01-26 Thread waqar afridi
Hello Every One

This is my First mail to this community, so dont know much about the Rules
and Regulations.

I want the Definition of "user_path_walk()" function, If any one had, Please
send it and if not, can any one tell me where could I find it.

Thanx In advance

-- 
Waqar Afridi