Go to main content

man pages section 9: DDI and DKI Kernel Functions

Exit Print View

Updated: Thursday, June 13, 2019
 
 

ddi_prop_name (9F)

Name

ddi_prop_name, ddi_prop_dev, ddi_prop_type, ddi_prop_len, ddi_prop_val - return property information

Synopsis

char *ddi_prop_name(ddi_prop_t *prop);
dev_t ddi_prop_dev(ddi_prop_t *prop);
int ddi_prop_type(ddi_prop_t *prop);
int ddi_prop_len(ddi_prop_t *prop);
caddr_t ddi_prop_val(ddi_prop_t *prop);

Parameters

ddi_prop_t

the property

Description

The ddi_prop_name() function returns a pointer to the name of a property.

The ddi_prop_dev() function returns a property dev_t, may be DDI_DEV_T_NONE.

The ddi_prop_type() function returns a property type. Value returned can be one of the following property types:

DDI_PROP_TYPE_INT
DDI_PROP_TYPE_STRING
DDI_PROP_TYPE_BYTE
DDI_PROP_TYPE_INT64

The ddi_prop_len() function returns the length of a property.

The ddi_prop_val() function returns a pointer to a value of a property.

Context

These functions can be called from user or kernel context.

See Also

ddi_prop_walk_list(9F), ddi_prop_search_list(9F)