Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/bus_alloc_resource.9
Show All 37 Lines | |||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/param.h | .In sys/param.h | ||||
.In sys/bus.h | .In sys/bus.h | ||||
.Pp | .Pp | ||||
.In machine/bus.h | .In machine/bus.h | ||||
.In sys/rman.h | .In sys/rman.h | ||||
.In machine/resource.h | .In machine/resource.h | ||||
.Ft struct resource * | .Ft struct resource * | ||||
.Fn bus_alloc_resource "device_t dev" "int type" "int *rid" "u_long start" "u_long end" "u_long count" "u_int flags" | .Fo bus_alloc_resource | ||||
.Fa "device_t dev" "int type" "int *rid" "rman_res_t start" "rman_res_t end" | |||||
.Fa "rman_res_t count" "u_int flags" | |||||
.Fc | |||||
.Ft struct resource * | .Ft struct resource * | ||||
.Fn bus_alloc_resource_any "device_t dev" "int type" "int *rid" "u_int flags" | .Fn bus_alloc_resource_any "device_t dev" "int type" "int *rid" "u_int flags" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
This is an easy interface to the resource-management functions. | This is an easy interface to the resource-management functions. | ||||
It hides the indirection through the parent's method table. | It hides the indirection through the parent's method table. | ||||
This function generally should be called in attach, but (except in some | This function generally should be called in attach, but (except in some | ||||
rare cases) never earlier. | rare cases) never earlier. | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |