Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2011 16:58:31 +0200
From:      "K. Macy" <kmacy@freebsd.org>
To:        lev@freebsd.org
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: How to include <sys/bus.h> without "device_if.h" and "bus_if.h"?
Message-ID:  <CAHM0Q_O-YkwmLY8bkcmwn%2Bdnybr3uxBsHd3sY=s6GnumqQUTvQ@mail.gmail.com>
In-Reply-To: <510582218.20110908185419@serebryakov.spb.ru>
References:  <899261441.20110908175756@serebryakov.spb.ru> <CAHM0Q_NitgdkKKA_EcCwh4_kW1MRCF9X_kAM81KkGNFBAGfrzg@mail.gmail.com> <510582218.20110908185419@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/9/8 Lev Serebryakov <lev@freebsd.org>:
> Hello, K..
> You wrote 8 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 18:22:11:
>
>> Just add them to the makefile. They'll be automatically created =9Aas
>> dependencies.
> =9AIs 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.

> =9AWhy 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@FreeBSD.org>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHM0Q_O-YkwmLY8bkcmwn%2Bdnybr3uxBsHd3sY=s6GnumqQUTvQ>