Re: Want to write a serial driver. where do i start from & how??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 03, 2003 at 01:15:15PM +0530, Mandeep Singh Sandhu wrote:
> Hi All,
> 
> i'm slightly new to the funda of writing device drivers. I started by
> writing an in-memory buffer(character driver) like the one shown in
> Alessandro rubini's Device Driver book (SCULL). I implemented the
> basic fxns for my device like open/close, read/write and IOCTL's. I
> now want to write a very basic serial driver for the serial port on my
> PC. I was planning to put a LED on the port and then switching it
> on/off by issuing IOCTL's to my driver. Someone suggested that i look
> at the serial.c code to start, but that code has a lot of things as it
> is a fully functional driver. There are a lot of things that i do not
> understand in it.  i need to know things like what r the barebone fxns
> that i need to implement for my driver to work apart from the init and
> exit fxns.If i make my own structure to represent the serial device
> what all should be there in it. Can anyone suggest some pointers on
> where and how to start.

There have been a few Linux Journal articles in the past year or so
about how to write tty and serial port drivers.  I suggest starting
there.

Good luck,

greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux