svn commit: r303890 - in head/sys: contrib/ncsw/user/env contrib/octeon-sdk dev/auxio dev/bktr dev/e1000 dev/ixgb dev/ixgbe dev/ixl dev/netmap dev/pci dev/sound/sbus dev/tpm kern mips/nlm/dev/net m...

Bruce Evans brde at optusnet.com.au
Wed Aug 10 02:08:54 UTC 2016


On Tue, 9 Aug 2016, [UTF-8] Jean-Sébastien Pédron wrote:

> Log:
>  Consistently use `device_t`
>
>  Several files use the internal name of `struct device` instead of
>  `device_t` which is part of the public API. This patch changes all
>  `struct device *` to `device_t`.

device_t is properly opque, yet it still causes namespace problems and
is harder to use, especially in userland where it doesn't exist.

Headers now have namespace pollution/dependencies on <sys/bus.h> where
they carefully used 'struct device' before.

Many kernel .c files probably depend on magic ordering to compile now.
Alphabetical ordering mostly works accidentally since b < [c-z].

Bruce


More information about the svn-src-all mailing list