[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
RE: opening files in kernel modules
Hi,
include the file <linux/file.h>
u can use the function filp_open (fs/open.c) to open the file. you have the
file pointer and use the fops interfaces...
dont forget to use put_filp to close the file...
Vikram
mailto:vikramk@xxxxxxxxxxxx
-----Original Message-----
From: linux-india-programmers-owner@xxxxxxxxxxxxxxxxxxxxx
[mailto:linux-india-programmers-owner@xxxxxxxxxxxxxxxxxxxxx]On Behalf Of
sibin m
Sent: Monday, February 19, 2001 6:21 PM
To: linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx;
linux-india-help@xxxxxxxxxxxxxxxxxxxxx
Subject: [LIP] opening files in kernel modules
hi ,
i have a problem while writing kernel level
modules...i'm unable to open/read data from any
files...
how do i open files in kernel modules...which headers
have the necessary functions ? using <stdio.h> and
functions like 'fopen' decribed in it doesn't seem to
help.
also, how does one set delays, again in kernel
modules.
ciao,
sibin
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
---------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/