Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/hamapi/ham_detach.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/hamapi/ham_detach.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/hamapi/ham_detach.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/hamapi/ham_detach.html on line 8
Detach an entity from the HAM
#include <ha/ham.h>
int ham_detach( ham_entity_t *ehdl,
unsigned flags );
libham
This function detaches an attached entity from the
HAM. The entity being detached must NOT be a self-attached
entity.
The handle passed into this function (ehdl) is either
returned by a previous
ham_attach() 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.
The ham_detach() call automatically raises a HCONDDETACH
condition in the HAM for that entity.
- 0
- Success.
- -1
- An error occurred (errno is set).
- EBADF
- Couldn't connect to the HAM.
- EINVAL
- The handle passed as an argument is invalid.
- ENOENT
- There's no entity corresponding to the handle supplied.
In addition to the above errors, the HAM returns any error
it encounters while servicing the request to remove the
entity from its context.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
ham_attach(),
ham_attach_self(),
ham_connect(),
ham_detach_name(),
ham_detach_self(),
ham_disconnect()
In the Library Reference:
procmgr_daemon()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/hamapi/ham_detach.html on line 151
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/hamapi/ham_detach.html on line 151