[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 564] Question about implementation of new discipline in altq
Hello Mr. Cho and everyone.
I want to implement my original discipline in the altq, but I don't know
what to do.
The followings are all I did, but I failed.
Would you tell me the reason, or what to do?
Sorry for stupid question.
(1)rewrote /usr/src/sys-altq/i386/ALTQ,LINT
(2)rewrote /usr/src/sys-altq/conf/files,options
(3)rewrote /usr/src/sys-altq/altq/altq.h,altq_conf.c
added /usr/src/sys-altq/altq/altq_new_discipline.c,h
(4)added /usr/src/sys-altq/modules/altq/altq_new_discipline
added /usr/src/sys-altq/modules/altq/altq_new_discipline/Makefile
(5)rewrote ALTQ_DIST/MAKEDEV.altq
(6)rewrote ALTQ_DIST/altqstat/Makefile,altqstat.h,qdisc_conf.c
(7)added qdisc_new_discipline.c
(8)rewrote ALTQ_DIST/libaltq/Makefile,qop_conf.c
added qop_new_discipline.c,h
and, I recompiled kernel source and altq source.
Whenever execute kldload, the following error occurs.
Sep 1 21:27:44 mymachine /kernel: module_register_init:
module_register(altq_new_discipline,
c011a388, 0xc0d6fa4c) error 22
Sep 1 21:27:44 mymachine /kernel: module_register_init:
module_register(altq_new_discipline,
c011a388, 0xc0d6fa4c) error 22
and when I execute "kldstat -v", module name and ID is not assigned for altq_new_discipline.
When execute altqd, above error and message such "device configuration is forbidden" are
displayed.
--
Masayuki Kumazawa mailto:vkhkm@md.neweb.ne.jp