diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-11-28 09:16:14 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-11-28 09:17:17 +0000 |
| commit | 6facc476f3056037f8b5cdb5546554ab3a887463 (patch) | |
| tree | ed9606e6e04a84dafd25273176181f769be4fc41 | |
| parent | 330d4437f2100fc05e576763f4f6a7198080663a (diff) | |
bus: Apply consistent style to prototypes
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
| -rw-r--r-- | sys/sys/bus.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h index f54ed2c58fd1..e0c6c590ce8d 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -747,7 +747,7 @@ void device_unbusy(device_t dev); void device_verbose(device_t dev); ssize_t device_get_property(device_t dev, const char *prop, void *val, size_t sz, device_property_type_t type); -bool device_has_property(device_t dev, const char *prop); +bool device_has_property(device_t dev, const char *prop); /* * Access functions for devclass. @@ -860,10 +860,10 @@ int bus_get_pass(void); * Routines to lock / unlock the newbus lock. * Must be taken out to interact with newbus. */ -void bus_topo_lock(void); -void bus_topo_unlock(void); +void bus_topo_lock(void); +void bus_topo_unlock(void); struct mtx * bus_topo_mtx(void); -void bus_topo_assert(void); +void bus_topo_assert(void); /** * Shorthands for constructing method tables. @@ -958,17 +958,17 @@ varp ## _set_ ## var(device_t dev, type t) \ struct device_location_cache; typedef struct device_location_cache device_location_cache_t; device_location_cache_t *dev_wired_cache_init(void); -void dev_wired_cache_fini(device_location_cache_t *dcp); -bool dev_wired_cache_match(device_location_cache_t *dcp, device_t dev, const char *at); +void dev_wired_cache_fini(device_location_cache_t *dcp); +bool dev_wired_cache_match(device_location_cache_t *dcp, device_t dev, const char *at); #define DEV_PROP_NAME_IOMMU "iommu-unit" typedef void (*device_prop_dtr_t)(device_t dev, const char *name, void *val, void *dtr_ctx); -int device_set_prop(device_t dev, const char *name, void *val, +int device_set_prop(device_t dev, const char *name, void *val, device_prop_dtr_t dtr, void *dtr_ctx); -int device_get_prop(device_t dev, const char *name, void **valp); -int device_clear_prop(device_t dev, const char *name); -void device_clear_prop_alldev(const char *name); +int device_get_prop(device_t dev, const char *name, void **valp); +int device_clear_prop(device_t dev, const char *name); +void device_clear_prop_alldev(const char *name); /** * Shorthand macros, taking resource argument |
