Date: Sun, 20 Aug 2006 19:16:29 +0400 From: Roman Kurakin <rik@inse.ru> To: freebsd-hackers@freebsd.org Subject: global date via module howto Message-ID: <44E87CCD.30105@inse.ru>
next in thread | raw e-mail | index | archive | help
Hi, I have the following problem: module A int x; module B extern int x; Module A is loaded, module B can't be loaded cause of unknow 'x'. What should I do to make x global? PS. I am working on porting irda support for USB devices from NetBSD. The current model consists of two layers hw and sw. hw is the usb device driver. sw is some software layer the same for all device and it is a child on top of hw 'bus'. To make this working I need to add DRIVER_MODULE for each 'bus'. To make sw independent from the bus I need to export _driver and _class structures and put DRIVER_MODULE in 'bus' code instead of 'child'. rik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44E87CCD.30105>