Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1911 KB)
getdevicerange(3TSOL)Name | Synopsis | Description | Return Values | Errors | Attributes | See Also | Notes Name
Synopsiscc [flag...] file... -lbsm -ltsol [library...] #include <tsol/label.h> blrange_t *getdevicerange(const char *device); DescriptionThe getdevicerange() function returns the label range of a user-allocatable device. If the label range is not specified for device, getdevicerange() returns the default values of ADMIN_LOW for the lower bound and ADMIN_HIGH for the upper bound of device. From the command line, list_devices(1) can be used to see the label range of device. Return ValuesThe getdevicerange() function returns NULL on failure and sets errno. On successful completion, it returns a pointer to a blrange_t structure which must be freed by the caller, as follows:
Errors
The getdevicerange() function will fail if: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoNotesThe functionality described on this manual page is available only if the system is configured with Trusted Extensions. Name | Synopsis | Description | Return Values | Errors | Attributes | See Also | Notes |
|||||||