[ECOS] Re: driver question (insmod)
Jonathan Larmour
jifl@eCosCentric.com
Tue Jun 15 18:58:00 GMT 2004
YHChou@viatech.com wrote:
>
>
> Hello, anybody
>
> I have a question about drivers. in Linux, we can use "insmod" to add
> one driver, in eCos, how can i do the same thing?
You enable the driver in the eCos configuration tool. eCos does not do
dynamic linking of kernel modules - it's anticipated that you know what
drivers your hardware will use so you include them specifically.
> second, in Linux, we use ioctl(drv_name,....), in eCos, how can I access
> the driver we just attach? thanks a lot..
You can use ioctl as well, but there might be a more specific interface. If
it's your own driver, just add whatever function you want! Unlike Linux,
eCos has everything right there directly - just call the function directly.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list