| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Detach a self-attached entity from the HAM
#include <ha/ham.h>
int ham_detach_self( ham_entity_t *ehdl
                     unsigned flags );
libham
This function detaches a self-attached entity from the HAM. The entity being detached must be a self-attached entity.
The handle passed into this function (ehdl) is either returned by a previous ham_attach_self() call or obtained from ham_entity_handle().
There are no flags defined at this time.
This function automatically calls ham_connect() and ham_disconnect() for the client.
In addition to the above errors, the HAM returns any error it encounters while servicing the request to remove the entity from its context.
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | Yes | 
ham_attach(), ham_attach_self(), ham_connect(), ham_detach(), ham_detach_name(), ham_disconnect()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |