diff options
author | jhb <jhb@FreeBSD.org> | 2014-11-24 19:55:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-11-24 19:55:45 +0000 |
commit | 5ffe4e5562c85ed6d4629e3641a23080692df4aa (patch) | |
tree | 3f96fa00831bb6ad6aa20f049336a4c1d907fa63 /sys/sys/bus.h | |
parent | c5e82d754f77fcaf7a68c60ff32dec3bdd556f1b (diff) | |
download | FreeBSD-src-5ffe4e5562c85ed6d4629e3641a23080692df4aa.zip FreeBSD-src-5ffe4e5562c85ed6d4629e3641a23080692df4aa.tar.gz |
Add a bus_get_domain() wrapper around BUS_GET_DOMAIN(). Use this to add
a new per-device '%domain' sysctl node that returns the NUMA domain a
device is associated with if it is associated with one.
Note that this API is still a WIP and might change before 11.0 actually
ships.
Differential Revision: https://reviews.freebsd.org/D930
Reviewed by: kib, adrian
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r-- | sys/sys/bus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h index 87858ac..b15a556 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -392,6 +392,7 @@ int bus_activate_resource(device_t dev, int type, int rid, int bus_deactivate_resource(device_t dev, int type, int rid, struct resource *r); bus_dma_tag_t bus_get_dma_tag(device_t dev); +int bus_get_domain(device_t dev, int *domain); int bus_release_resource(device_t dev, int type, int rid, struct resource *r); int bus_free_resource(device_t dev, int type, struct resource *r); |