Query if a capability is needed
#include <sys/dcmd_prof.h> #define DCMD_PROF_QUERY __DIOT(_DCMD_MISC, PROF_QUERY, struct __prof_clientinfo)
Argument | Value |
---|---|
filedes | A file descriptor for the profiler that you obtained by opening /dev/profiler. |
dcmd | DCMD_PROF_QUERY |
dev_data_ptr | A pointer to a struct __prof_clientinfo (see DCMD_PROF_ATTACH) |
n_bytes | sizeof(struct __prof_clientinfo) |
dev_info_ptr | NULL |
This command queries if a capability is needed, returning either EOK or EACCES.
Set the cmd member of the struct __prof_clientinfo to one of the following:
None.
The devctl() function can return the following, in addition to the error codes listed in its entry in the C Library Reference:
devctl() in the QNX Neutrino C Library Reference