How to include <sys/bus.h> without "device_if.h" and "bus_if.h"?

K. Macy kmacy at freebsd.org
Thu Sep 8 14:58:33 UTC 2011


2011/9/8 Lev Serebryakov <lev at freebsd.org>:
> Hello, K..
> You wrote 8 сентября 2011 г., 18:22:11:
>
>> Just add them to the makefile. They'll be automatically created  as
>> dependencies.
>  Is it good idea to create these empty files only for one prototype
> from <sys/bus.h>?

I can't comment on whether or not it is good or bad. It is simply how
things are done.

>  Why devctl_notify() is bound to bus, anyway? It is used, for
> example, for notifications about network cable plug/unplug, which
> doesn't look like something bus-related.

If you look at it you'll see that bus.h covers a range of areas,
general device instantiation being one of them.




>
> --
> // Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>
>
>


More information about the freebsd-hackers mailing list