* How do I use syscalls in a module ?
@ 2001-03-05 10:49 Bogdan HARJOC
0 siblings, 0 replies; only message in thread
From: Bogdan HARJOC @ 2001-03-05 10:49 UTC (permalink / raw)
To: linux-kernel
HI. I'm not sure I'm supposed to ask newbie questions here, if so,
I'm sorry. But here goes:
I'm trying to do a driver for a kind of modem that doesn't use
serial ports, but parralel. So I thought it would be enough to simulate a
ttyS* device. But I need to read from a file the parameters for the modem.
I tried using asm/unistd.h, but when I call open(), I get "Bad adress" as
an error. What I would like to know is can syscalls (eg open()/close()/
lseek()/...) be used in a module, and if so, how ?
Thanx for reading.
Bogdan.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-05 9:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-05 10:49 How do I use syscalls in a module ? Bogdan HARJOC
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).