|
|
|
Re: Needs the complete definition "user_path_walk()" | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Wed, Jan 27, 2010 at 1:35 PM, waqar afridi <afridi.waqar@xxxxxxxxx> 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 <mkatiyar@xxxxxxxxx> wrote:
>>
>> On Wed, Jan 27, 2010 at 12:36 PM, waqar afridi <afridi.waqar@xxxxxxxxx>
>> 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 <viro@xxxxxxxxxxxxxxxxxx>
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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ
[Newbies FAQ] [Kernel Development Development] [Site Home] [IETF Annouce] [Git] [Networking] [Security] [Bugtraq] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux Networking] [Linux RAID] [Linux SCSI] [Linux ACPI] [DDR & Rambus] [UNIX Filesystems] [Linux Resources]
![]() |
![]() |