Re: Inode access !

Steve Dodd (dirk@loth.demon.co.uk)
Tue, 16 Feb 1999 08:43:34 +0000


Hi,

On Tue, Feb 16, 1999 at 02:04:24AM -0500, Sampath Peechu wrote:

> i'm trying to get access to the inode information
> about a file using the kernel function "namei()".
> (actually, i call this function from my system call).
> however, it gives me an EFAULT error. if u have

Err, are you trying to call it from somewhere else in the kernel? I doubt
it will work - namei() expects the filename to be in the process's address
space, not the kernel's. EFAULT generally means that a pointer passed as a
call parameter is outside the current process's accessible address space.

S.

-- 
"I decry the current tendency to seek patents on algorithms.  There are
better ways to earn a living than to prevent other people from making use of
one's contributions to computer science."  -- Donald E. Knuth, TAoCP vol 3

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/