Two questions: how to specify module-load function for driver module and which name of driver is better (according to "standards")

Andriy Gapon avg at freebsd.org
Fri Nov 19 16:46:58 UTC 2010


on 19/11/2010 17:55 Lev Serebryakov said the following:
> Hello, Freebsd-usb.
> 
>   I've  implemented  driver (ucom-subdriver) for MosChip 7820 and 7840
>  USB2COM multiport bridges. I have two questions:
> 
>   (1)  How  should  I  specify  module-load  function? DRIVER_MODULE()
>   doesn't   help   much.

Are you sure?
The last two arguments to DRIVER_MODULE() look like what you want.

>   I  need  to run some code only once, at very
>   beginning,  not  for each probe/attach.



-- 
Andriy Gapon


More information about the freebsd-usb mailing list