DCMD_PROF_DETACH
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Detach a process from the profiler
Synopsis:
#include <sys/dcmd_prof.h>
#define DCMD_PROF_DETACH __DIOT(_DCMD_MISC, PROF_DETACH, NULL)
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor for the profiler that you obtained by opening /dev/profiler. |
dcmd | DCMD_PROF_DETACH |
dev_data_ptr | A pointer to a struct __prof_clientinfo (see below) |
n_bytes | sizeof(struct __prof_clientinfo) |
dev_info_ptr | NULL |
Description:
This command detaches the calling process from the profiler.
Note:
Although DCMD_PROF_DETACH is declared with a NULL:
#define DCMD_PROF_DETACH __DIOT(_DCMD_MISC, PROF_DETACH, NULL)
you should use it like this:
struct __prof_clientinfo clocal;
memset (clocal, 0, sizeof (clocal));
devctl(prof_fd, DCMD_PROF_DETACH, &clocal, sizeof clocal, 0);
or else the command fails (even though it doesn't actually use the data).
Input:
None.
Output:
None.
See also:
devctl() in the QNX OS C Library Reference
Page updated: