git: 6facc476f305 - main - bus: Apply consistent style to prototypes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Nov 2025 09:18:07 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=6facc476f3056037f8b5cdb5546554ab3a887463
commit 6facc476f3056037f8b5cdb5546554ab3a887463
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-11-28 09:16:14 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-11-28 09:17:17 +0000
bus: Apply consistent style to prototypes
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
---
sys/sys/bus.h | 20 ++++++++++----------
1 file 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