public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Lazy Newbie Question
@ 2002-05-21 15:36 Calin A. Culianu
  2002-05-21 15:53 ` Richard B. Johnson
  0 siblings, 1 reply; 12+ messages in thread
From: Calin A. Culianu @ 2002-05-21 15:36 UTC (permalink / raw)
  To: linux-kernel


Whats the best way to do the equivalent of a stat() on a char * pathname
from inside a kernel module?  Don't ask why I need to do this.. I know it
sounds evil but I just need to do it...  Basically I need to find out the
minor number of a device file.

I noticed there's a filp_open() function that is exported and it returns a
struct file *.  I am not sure what the semantics of about 75% of the
fields in that struct are.. and/or how they relate to the well-documented
fields in the libc's struct stat.  Any help/insights would be appreciated.


-Calin


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-05-22  7:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.lnev59v.el8i1c@ifi.uio.no>
     [not found] ` <fa.kh0cciv.i5g73p@ifi.uio.no>
2002-05-21 18:32   ` Lazy Newbie Question Kevin Buhr
2002-05-21 19:56     ` Calin A. Culianu
2002-05-21 20:58       ` Kevin Buhr
2002-05-21 23:20         ` Calin A. Culianu
2002-05-21 23:42           ` Calin A. Culianu
2002-05-22  7:03           ` Zwane Mwaikambo
2002-05-21 15:36 Calin A. Culianu
2002-05-21 15:53 ` Richard B. Johnson
2002-05-21 16:07   ` Calin A. Culianu
2002-05-21 16:30     ` Eli Carter
2002-05-21 16:52     ` Richard B. Johnson
2002-05-21 17:38       ` Calin A. Culianu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox