device driver

device driver

Post by satya kum » Thu, 09 Aug 2001 14:48:37

Hai All,
 I have just started writing device
drivers.Now my problem is as soon as I insert the
module and try to open it for reading it gives this
error "Bad address".What could be the reason.I havent
used ioctl .
Next how to specify the port address of serial
port(0x002f8,0x003f8) if I were to write a device
driver for accessing the serial port.I have seen the source code file
serial.c but it dosent have usual functions as register_chrdev() why?
Is interrupt handling a necessity while writing a device driver just
to access it and read and write some data.
HOw to disable the already existing serial device driver once I write
my own,do I have to recompile the kernel and remove the support?
Thanks in advance.

1. Device driver calling another device driver.


I am having a problem writing a "meta-driver", ie one that is sandwiched
between the kernel and a real device driver. The platform I am using
consists of a Sun IPC, running SunOS 4.1.1.

My problem is that in attempting to use the OPEN(2V) system call from within
the "xxopen" routine of my metadriver (to open another device-driver (which
then opens the device)); OPEN(2V) "fails".

It appears that calling OPEN(2V) from within the kernel requires a different
calling sequence and argument list. Viz-a-viz: instead of a file descriptor
being returned by OPEN(2V), it seems a pointer is returned (which itself is
a pointer to something else).

Is this true? Is the OPEN(2V) syscall different for a process executing in
user address space, compared to the OPEN call executed by a process running
in kernel mode/address space?

If this is true for OPEN, what about CLOSE, READ, WRITE, etc? Unfortunately,
I don't have (easy) access to any Unix (source) code, to verify this.

Thanks in advance for help/advice.

2. Trouble with m3tk under IBMR2

3. Device driver question (generic device driver)

4. how to define etermx function key with modifier?

5. PCI device vs SCSI device driver

6. shared lib, modules, and dlopen

7. Device driver for a device

8. application list for cde

9. Device driver devices.pci.scsi missing

10. New device device driver development tool for Solaris.

11. one device driver and 2 devices for it, impossible with linux ?

12. My first device driver => "No such device" :(

13. New device device driver development tool for Solaris.