DCMD_PROF_QUERY

Query if a capability is needed

Synopsis:

#include <sys/dcmd_prof.h>

#define DCMD_PROF_QUERY           __DIOT(_DCMD_MISC, PROF_QUERY, struct __prof_clientinfo)

Arguments to devctl():

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

Description:

This command queries if a capability is needed, returning either EOK or EACCES.

Input:

Set the cmd member of the struct __prof_clientinfo to one of the following:

Output:

None.

Errors:

The devctl() function can return the following, in addition to the error codes listed in its entry in the C Library Reference:

EACCES
The capability isn't needed.

See also:

devctl() in the QNX Neutrino C Library Reference