Date: Thu, 7 Nov 2013 01:56:04 -0800 (PST) From: Nomad Esst <noname.esst@yahoo.com> To: "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org> Subject: Change order of modules loading in kernel Message-ID: <1383818164.21969.YahooMailNeo@web162703.mail.bf1.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi=0AFirst thanks to Mr. John Baldwin, helped me with my previous questions= .=0A=0AWith his helps, I made some changes in order to make em and igb driv= er name ports "foo".=0ANow the changes are :=0A"if_igb.c" :=A0Change "igb" = to "foo" in device_t structure b:=0Astatic driver_t igb_driver =3D {=0A"foo= ", igb_methods, sizeof(struct adapter),=0A};=0A=0Astatic=A0devclass_t igb_d= evclass;=0ADRIVER_MODULE(igb, pci, igb_driver, igb_devclass, 0, 0);=0AMODUL= E_DEPEND(igb, pci, 1, 1, 1);=0AMODULE_DEPEND(igb, ether, 1, 1, 1);=0A=0AAls= o for=A0"if_em.c" :=A0Change "em" to "foo" in device_t structure b:=0A=0Ast= atic driver_t em_driver =3D {=0A"foo", em_methods, sizeof(struct adapter),= =0A};=0Adevclass_t em_devclass;=0ADRIVER_MODULE(em, pci, em_driver, em_devc= lass, 0, 0);=0AMODULE_DEPEND(em, pci, 1, 1, 1);=0AMODULE_DEPEND(em, ether, = 1, 1, 1);=0A=0ANow, I have my interfaces like : foo0 , foo1 , foo2 , foo3 ,= foo4 , foo5=0AThe firs four interface (old "igb"s) are located at the righ= t side of my server an the last two ones (old "em"s) are located at the lef= t side, you can see the problem. I want the "em" module load before "igb". = Can I do so?=0ABy the way! Different driver naming in device_t structure an= d in DRIVER_MODULE and the other two macros (as I have done) causes problem= s?=0AThanks in advance
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1383818164.21969.YahooMailNeo>