lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 2 Jul 2009 19:27:44 +0100
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
To:	Kumar Gala <galak@...nel.crashing.org>
Cc:	Linux-Kernel List <linux-kernel@...r.kernel.org>,
	Greg KH <greg@...ah.com>
Subject: Re: good example of a tty driver

On Thu, 2 Jul 2009 11:48:09 -0500
Kumar Gala <galak@...nel.crashing.org> wrote:

> Alan,
> 
> Can you point me at any good drivers to use as an example of using the  
> tty layer.  I'm trying to get an out of tree driver brought up to date  
> for the Avocent ESP-16 MI Serial Hubs (serial over ethernet):

Its very much in flux with the drivers getting kref support, helper
functions and the like in the current releases.

> 
> http://www.connectivity.avocent.com/products/network-based/esp_16.asp
> 
> Thankfully the have a GPL driver but it was last updated against 2.6.23:
> 
> http://www.connectivity.avocent.com/drivers/esp_serial_hubs/dd64e069.asp
> 
> However I've never worked on any tty drivers so its a bit black magic  
> at this point.  I was hoping that an example would at least get me  
> able to bring the driver up to a point that we can get it into the  
> staging tree.

I would make it build, chuck it in the staging tree and go from there

isicom has a fairly good use of the newer helper functions we have so far
and struct tty_port so is probably as good an example as any if the
driver is using drivers/char. If its using the serial layer helpers then
apart from making sure you report the actual baud rate and termios
settings back little has changed (its all been hidden in the midlayer)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ