Re: Clone driver

Steve Schefter <[email protected]> Fri, 27 Jan 2006 16:36:42 -0500
Newsgroups gmane.linux.kernel.streams
Organization The Software Group Limited
Message-ID <[email protected]>
Hi Gary.

> I am new to LiS and am in the process of porting a clone driver from a 
> Solaris platform to
> a PPC platform using Linux (2.4.20) and LiS (2.18).  Are there some good 
> examples or
> documentation on how to manage the major/minor numbers during 
> init/open/close/cleanup? 

There are a number of sample drivers that come with LiS.  Take a look
at drivers/str/linux/ip_to_dlpi.c for example.  It deals with acquiring
a major number (lis_register_strdev() in init), getting a new clone
device in open and freeing the major numer in cleanup.

We too use LiS on a PPC (for one) platform.  If you haven't already
come across it, see "PPC" and "ppc" references in config.mk in LiS'
top level.

Regards,
	Steve

------------------------------------------------------------------------
Steve Schefter                               phone: +1 705 725 9999 x26
The Software Group Limited                     fax: +1 705 725 9666
642 Welham Road,                             email: [email protected]
Barrie, Ontario CANADA  L4N 9A1                Web: www.wanware.com