[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[altq 555] Re: open_module() in qop.c




Kondapally Kumar wrote:
> Thanks for the info. Now we defined the option in
> opt_altq.h and it doesn't build it in the kernel
> automatically. Now it gives the following error msg :
> 
> ALTQ config file is /home/kkumar/vtrs.conf
> kld module altq_vtrs loaded
> VTRS open
> : Operation not supported by device
> syscall error: can't add vtrs on interface 'fxp0'
> : Operation not supported by device
> Error in /home/kkumar/vtrs.conf, line 1
> Config failed. Exiting.

As you said, ENODEV suggests your module didn't register itself when
it was loaded.

> This leads to my earlier suspicion regarding the
> xxxxxx.ko file ? I think that the altq_vtrs.ko file is
> not correct.. altq_vtrs.ko file doesn't have the
> function names etc.. like altq_wfq.ko ? Can you let me
> know how we should make altq_xxxx.ko files ? Also
> altq_xxx.ko files are significantly larger comapred to
> our altq_vtrs.ko file. Something is missing.

Check Makefile in sys/modules/altq/altq_vtrs.
Makefile under a module directory has to create necessary opt_* files
including opt_altq.h.

-Kenjiro