On 5/19/05, Amer Yasin <[EMAIL PROTECTED]> wrote:
> Write a sample device driver and test application program to use the
> device driver. The device driver implements the open, read,
> hi guyz can anyone help me regarding:
> how to write and release methods. The write method gets the user data
> from test application and stores in a temporary buffer. The read
> method returns this data to test application, when read method is
> called by the test program.
> What is major number?
> How do you register the character driver to the Linux kernel?
> 
> any hints????
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://mail.jolug.org/mailman/listinfo/general_jolug.org
> 

use IOCTL's, a big learning curve is involved but thats the way
everyone does it.
I did write IOCTL code long time ago and I'll send it to you tomorrow,
sorry but I dont have it with me here.

and major numbers are the identifying number for your module, so when
an ioctl is caught by the kernel it knows whom to give it to. beware
of using an already used major number.
/usr/src/linux/Documentation/magic-number.txt

-- 
---------------------------
Netiquette -> http://www.dtcc.edu/cs/rfc1855.html
http://tumbak.at.preempted.net
---------------------------

_______________________________________________
General mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/general_jolug.org

Reply via email to