This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: device driver enquirey - c label


On Sat, Dec 16, 2006 at 06:37:57PM +1000, Yi Tang wrote:
> Hello,
> 
> It's the first time for me to write a device driver. I have got a simple, 
> silly question, hope someone in this group can instruct me.
> 
> In the eCos reference, I found that there is one item in nearly all io 
> functions, the "C label".
> 
> like this one:
> 
> DEVTAB_ENTRY(l, name, dep_name, handlers, init, lookup, priv)
> 
> l: The "C" label for this entry.
> 
> also can be found in DEVIO_TABLE and other functions.

It is used to tell eCos about devices. You don't need to assign it to
anything. It causes an entry to be placed into the list of device.

          Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]