DCMD_PROC_THAWTHREAD

Unfreeze a thread in the process that's associated with the file descriptor.

#include <sys/procfs.h>

#define DCMD_PROC_THAWTHREAD   __DIOT(_DCMD_PROC, __PROC_SUBCMD_PROCFS + 16, pthread_t)

The arguments to devctl() are:

Argument Value
filedes A file descriptor for the process.
dcmd DCMD_PROC_THAWTHREAD
dev_data_ptr A pointer to a pthread_t
n_bytes sizeof(pthread_t)
dev_info_ptr NULL

You must have opened the file descriptor for writing. The argument is a pointer to a pthread_t value that specifies the thread to be thawed. For example:

devctl( fd, DCMD_PROC_THAWTHREAD, &tid, sizeof tid, NULL);

To freeze a thread, use DCMD_PROC_FREEZETHREAD.