ham_condition_remove()
QNX SDP8.0High Availability Framework Developer's GuideDeveloper
Remove a condition from an entity
Synopsis:
#include <ha/ham.h> int ham_condition_remove( ham_condition_t *chdl, unsigned flags );
Arguments:
- chdl
- The HAM condition handle to remove.
- flags
- Currently not used.
Library:
libham
Description:
The ham_condition_remove() function removes a condition from an entity.
The chdl argument is a handle to a condition that was previously obtained by a call to ham_condition() or to ham_condition_handle().
There are no flags defined at this time.
Note:
The ham_connect() function must be
called before the first call to ham_condition_remove() in a process.
Returns:
- 0
- Success.
- -1
- An error occurred (errno is set).
Errors:
- EBADF
- Couldn't connect to the HAM.
- EINVAL
- The handle passed as an argument is invalid.
- ENOENT
- There's no condition corresponding to the handle supplied.
In addition to the above errors, the HAM returns any error it encounters while servicing the request.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | No |
Thread | Yes |
Page updated: