| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Basic Library Functions Oracle Solaris 11 Information Library |
enable_extended_FILE_stdio(3C)
posix_spawnattr_getschedparam(3C)
posix_spawnattr_getschedpolicy(3C)
posix_spawnattr_getsigdefault(3C)
posix_spawnattr_getsigignore_np(3C)
posix_spawnattr_getsigmask(3C)
posix_spawnattr_setschedparam(3C)
posix_spawnattr_setschedpolicy(3C)
posix_spawnattr_setsigdefault(3C)
posix_spawnattr_setsigignore_np(3C)
posix_spawnattr_setsigmask(3C)
posix_spawn_file_actions_addclose(3C)
posix_spawn_file_actions_addclosefrom_np(3C)
posix_spawn_file_actions_adddup2(3C)
posix_spawn_file_actions_addopen(3C)
posix_spawn_file_actions_destroy(3C)
posix_spawn_file_actions_init(3C)
pthread_attr_getdetachstate(3C)
pthread_attr_getinheritsched(3C)
pthread_attr_getschedparam(3C)
pthread_attr_getschedpolicy(3C)
pthread_attr_setdetachstate(3C)
pthread_attr_setinheritsched(3C)
pthread_attr_setschedparam(3C)
pthread_attr_setschedpolicy(3C)
pthread_barrierattr_destroy(3C)
pthread_barrierattr_getpshared(3C)
pthread_barrierattr_setpshared(3C)
pthread_condattr_getpshared(3C)
pthread_condattr_setpshared(3C)
pthread_cond_reltimedwait_np(3C)
pthread_key_create_once_np(3C)
pthread_mutexattr_getprioceiling(3C)
pthread_mutexattr_getprotocol(3C)
pthread_mutexattr_getpshared(3C)
pthread_mutexattr_getrobust(3C)
pthread_mutexattr_setprioceiling(3C)
pthread_mutexattr_setprotocol(3C)
pthread_mutexattr_setpshared(3C)
pthread_mutexattr_setrobust(3C)
pthread_mutex_getprioceiling(3C)
pthread_mutex_reltimedlock_np(3C)
pthread_mutex_setprioceiling(3C)
pthread_rwlockattr_destroy(3C)
pthread_rwlockattr_getpshared(3C)
pthread_rwlockattr_setpshared(3C)
pthread_rwlock_reltimedrdlock_np(3C)
pthread_rwlock_reltimedwrlock_np(3C)
pthread_rwlock_timedrdlock(3C)
pthread_rwlock_timedwrlock(3C)
rctlblk_get_enforced_value(3C)
- iterator functions on process handles from libc_db
cc [flag... ]file... -lc_db [library... ]#include <proc_service.h>#include <thread_db.h>typedef inttd_sync_iter_f(const td_synchandle_t *sh_p,void *cbdata_p);
typedef inttd_thr_iter_f(const td_thrhandle_t *th_p,void *cbdata_p);
typedef inttd_key_iter_f(thread_key_tkey,void (*destructor)(),void *cbdata_p);
td_err_etd_ta_sync_iter(const td_thragent_t *ta_p,td_sync_iter_f *cb,void *cbdata_p);
td_err_etd_ta_thr_iter(const td_thragent_t *ta_p,td_thr_iter_f *cb,void *cbdata_p,td_thr_state_estate,intti_pri,sigset_t *ti_sigmask_p,unsignedti_user_flags);
td_err_etd_ta_tsd_iter(const td_thragent_t *ta_p,td_key_iter_f *cb,void *cbdata_p);
Thetd_ta_sync_iter(),td_ta_thr_iter(), andtd_ta_tsd_iter() functions are iterator functions that when givena target process handle as an argument, return sets of handles forobjects associated with the target process. The method is to call back aclient-provided function once for each associated object, passing back a handle aswell as the client-provided pointercb_data_p. This enables a client to easilybuild a linked list of the associated objects. If the client-provided functionreturns non-zero, the iteration terminates, even if there are members remaining in theset of associated objects.
Thetd_ta_sync_iter() function returns handles of synchronization objects (mutexes, readers-writer locks, semaphores,and condition variables) associated with a process. Some synchronization objects mightnot be known tolibc_db and will not be returned. If the processhas initialized the synchronization object (by callingmutex_init(3C), for example) or athread in the process has called a synchronization primitive (mutex_lock(), for example)using this object aftertd_ta_new(3C_DB) was called to attach to the processandtd_ta_sync_tracking_enable() was called to enable synchronization object tracking, then a handle forthe synchronization object will be passed to the callback function. Seetd_sync_get_info(3C_DB)for operations that can be performed on synchronization object handles.
Thetd_ta_thr_iter() function returns handles for threads that are part of thetarget process. Fortd_ta_thr_iter(), the caller specifies several criteria to selecta subset of threads for which the callback function should be called. Any of these selection criteria may be wild-carded. If all of themare wild-carded, then handles for all threads in the process will bereturned.
The selection parameters and corresponding wild-card values are:
Select only threads whose state matchesstate. Seetd_thr_get_info(3C_DB) for a list of thread states.
Select only threads for which the priority is at leastti_pri.
Select only threads whose signal mask exactly matches *ti_sigmask_p.
Select only threads whose user flags (specified at thread creation time) exactly matchti_user_flags.
Thetd_ta_tsd_iter() function returns the thread-specific data keys in use by thecurrent process. Thread-specific data for a particular thread and key canbe obtained by callingtd_thr_tsd(3C_DB).
The call completed successfully.
An invalid process handle was passed.
A call to one of the imported interface routines failed.
The call did not complete successfully.
Seeattributes(5) for description of the following attributes:
|
libc_db(3LIB),mutex_init(3C),td_sync_get_info(3C_DB),td_thr_get_info(3C_DB),td_thr_tsd(3C_DB),attributes(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |