Get information pertaining to the path associated with the process associated with the file descriptor.
#include <sys/procfs.h> #define DCMD_PROC_MAPDEBUG_BASE __DIOF(_DCMD_PROC, __PROC_SUBCMD_PROCFS + 3, procfs_debuginfo)
The arguments to devctl() are:
Argument | Value |
---|---|
filedes | A file descriptor for the process. |
dcmd | DCMD_PROC_MAPDEBUG_BASE |
dev_data_ptr | A pointer to a procfs_debuginfo structure |
n_bytes | sizeof(procfs_debuginfo) |
dev_info_ptr | NULL |
This is a convenience extension; it's equivalent to using DCMD_PROC_INFO, and then DCMD_PROC_MAPDEBUG with the base_address field. The base address is the address of the initial executable.
The argument is a pointer to a procfs_debuginfo structure, which is filled in with the required information on return. For example:
procfs_debuginfo dinfop; devctl( fd, DCMD_PROC_MAPDEBUG_BASE, &dinfop, sizeof(dinfop), NULL);