dtrace_ctlfd - DTrace control file descriptor
cc [ flag... ] file... -ldtrace [ library... ] #include <dtrace.h> int dtrace_ctlfd(dtrace_hdl_t *dtp)
The dtrace_ctlfd() function returns the file descriptor that's being used to communicate with the /dev/dtrace.
On successful completion, the dtrace_ctlfd() function returns the file descriptor being used to communicate with the /dev/dtrace. On failure, the function returns -1 and sets the DTrace error number to indicate the reason for the failure. See the dtrace_errno(3DTRACE) man page for more information.
The dtrace_ctlfd() function will fail if:
dtp is NULL.
See attributes(7) for descriptions of the following attributes:
|