This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: driver question (insmod)
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: YHChou at viatech dot com
- Cc: eCos discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 15 Jun 2004 19:58:30 +0100
- Subject: [ECOS] Re: driver question (insmod)
- References: <927C3C2743098B4980CE31F77F35A842040AA319@exchfr01.viatech.com.fr>
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