Thanks Joe - That was exactly what I needed. 

I have some questions about Config. 

At this time, I have my driver and modules in a separate source 
directory. When I read the notes in the config section, it seems to say
that it should be a subfolder under .../pkg. Is that necessary - or
desirable? Will things be easier for me in building or testing if it is
there? This source will be a part of a source package that will not
include Lis source. My gut feel is that I'd like to keep it separate.
If it is separate, will I need a separate Config file? Once LiS is
installed, how do I change the config? 

This stuff is probably explained somewhere, but I can't find it. Of
course, I normally can't find stuff without someone telling my nose is
right there under my glasses. 

Any Thoughts?
Bill


> -------- Original Message --------
> Subject: Re: [Linux-streams] minor device number...
> From: "Reuter, Joseph (Mission Systems)" <[EMAIL PROTECTED]>
> Date: Mon, November 07, 2005 10:56 am
> To: <[email protected]>
> Cc: <[EMAIL PROTECTED]>
> 
> > I am taking a standar d version of a custom serial driver and making a
> 
> > streams driver from it. The problem I have is that the current driver
> uses 
> > device minor number as an index to the correct port in the FPGA.
> > 
> > How can I get the device minor number in the driver.  I know how 
> > to get it from the open(), but I need it for the read and write 
> > streams that only have mblk_t and queue_t to work from.
> > 
> > Any suggestions??
> > 
> > Bill
> 
> The queue_t structure contains a field q_ptr that is for the use of 
> the driver. Allocate a structure durin open(), populate it with the 
> minor number and any other state data you need and store a pointer to 
> it in q->q_ptr. Now you can access that data in the other routines.
> 
> Joe Reuter
> ----------
> In theory, theory and practice are the same; in practice, they're not.

_______________________________________________
Linux-streams mailing list
[email protected]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to