NAME | SYNOPSIS | API RESTRICTIONS | ARGUMENTS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libblackbox.a #include <sys/blackbox.h>int bb_release(bb_id_t id);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
bb_release() frees up a frozen black box.
Once a black box has been released by bb_release(), it is no longer available for "opening" with bb_open(); the data from that black box is no longer accessible.
If the call to bb_release() results in a black box becoming available for taking new events where there were previously none, the black box service will publish a "space available" event via the publish/subscribe mechanism.
bb_release() returns 0 on success and -1 on failure.
If it returns -1, errno is set to:
There is no black box with the specified ID
The specified black box is already open for reading, or the specified black box is not frozen
The caller doesn't have permission to release a black box
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | ARGUMENTS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO