lkml.org 
[lkml]   [1999]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Inode access !
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.031 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site