Searched defs:thread (Results 1 - 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dctxop.c30 #include <sys/thread.h>
36 kthread_t thread, *tp = &thread; local
39 mdb_warn("must specify thread for ctxop walk\n");
43 mdb_warn("failed to read thread at %p", wsp->walk_addr);
H A Dtsd.c30 #include <sys/thread.h>
79 * Map from thread pointer to tsd pointer for given key
84 kthread_t thread, *t = &thread; local
97 mdb_warn("failed to read thread at %p", addr);
138 * Given a tsd pointer, find the owning thread
146 if (mdb_walk("thread", (mdb_walk_cb_t)tsdthr_match, (void *)addr) == -1)
H A Dthread.c33 #include <sys/thread.h>
102 mdb_warn("failed to read thread at %p", wsp->walk_addr);
153 mdb_warn("couldn't read deathrow thread at %p", addr);
378 * indicate which subset of the thread's members are to be displayed
388 thread(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function
400 * newline and indent such that the thread addresses form a
411 if (mdb_walk_dcmd("thread", "thread", argc, argv) == -1) {
554 "\t-b\tprint blocked thread state\n"
557 "\t-i\tprint basic thread stat
[all...]
H A Dtypegraph.c1397 * If this thread isn't already a node, add it as an anchor. And
2451 if (mdb_walk("thread", (mdb_walk_cb_t)typegraph_thread, &type) == -1) {
2452 mdb_warn("couldn't walk 'thread'");
2857 static mdb_ctf_id_t thread; local
2876 if (mdb_ctf_lookup_by_name("kthread_t", &thread) == -1) {
2881 if (!mdb_ctf_type_valid(thread = typegraph_resolve(thread))) {
2944 * Check to see if the owner is a thread.
2957 if (mdb_ctf_type_cmp(ttype, thread) != 0)
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_thread.c31 * iscsi_thread_create - Creates the needed resources to handle a thread
37 iscsi_thread_t *thread; local
39 thread = kmem_zalloc(sizeof (iscsi_thread_t), KM_SLEEP);
41 if (thread != NULL) {
43 thread->tq = ddi_taskq_create(dip, name, 1,
46 if (thread->tq != NULL) {
47 thread->signature = SIG_ISCSI_THREAD;
48 thread->dip = dip;
49 thread->entry_point = entry_point;
50 thread
303 iscsi_thread_wait( iscsi_thread_t *thread, clock_t timeout ) argument
362 iscsi_thread_t *thread; local
[all...]
H A Discsi_io.c1764 * iscsi_tx_thread - This thread is the driving point for all
1769 iscsi_tx_thread(iscsi_thread_t *thread, void *arg) argument
1780 ASSERT(thread != NULL);
1781 ASSERT(thread->signature == SIG_ISCSI_THREAD);
1836 ret = iscsi_thread_wait(thread, tout);
3249 iscsi_ic_thread(iscsi_thread_t *thread, void *arg) argument
3258 ASSERT(thread != NULL);
3259 ASSERT(thread->signature == SIG_ISCSI_THREAD);
3266 ret = iscsi_thread_wait(thread, -1);
3363 * thread t
3390 iscsi_wd_thread(iscsi_thread_t *thread, void *arg) argument
[all...]
H A Discsid.c31 #include <sys/thread.h>
50 static void iscsid_thread_static(iscsi_thread_t *thread, void *p);
51 static void iscsid_thread_sendtgts(iscsi_thread_t *thread, void *p);
52 static void iscsid_thread_isns(iscsi_thread_t *thread, void *p);
53 static void iscsid_thread_slp(iscsi_thread_t *thread, void *p);
54 static void iscsid_thread_boot_wd(iscsi_thread_t *thread, void *p);
82 * iSCSI target discovery thread table
388 * iscsid_props -- returns discovery thread information, used by ioctl code
399 /* ---- change once thread is implemented ---- */
1683 iscsid_thread_static(iscsi_thread_t *thread, voi argument
1734 iscsid_thread_sendtgts(iscsi_thread_t *thread, void *p) argument
1776 iscsid_thread_slp(iscsi_thread_t *thread, void *p) argument
1796 iscsid_thread_isns(iscsi_thread_t *thread, void *ptr) argument
2388 iscsid_thread_boot_wd(iscsi_thread_t *thread, void *p) argument
[all...]
H A Disns_client.c83 * One thread, port, local address, and listening socket per LHBA instance.
144 static void isns_service_esi_scn(iscsi_thread_t *thread, void* arg);
286 * Problem creating ESI/SCN thread
364 /* Problem creating ESI/SCN thread */
441 /* Cleanup ESI/SCN thread. */
475 * Clean up ESI/SCN thread resource if it is the
617 * Bringing up of the thread should happen regardless of the
619 * ESI/SCN thread already created.
621 /* Check and create ESI/SCN thread. */
2972 isns_service_esi_scn(iscsi_thread_t *thread, voi argument
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_thread.c57 * The state of the thread is set to "running" at the beginning and moved to
63 smb_thread_t *thread)
65 ASSERT(thread->sth_magic == SMB_THREAD_MAGIC);
66 mutex_enter(&thread->sth_mtx);
67 ASSERT(thread->sth_state == SMB_THREAD_STATE_STARTING);
69 if (!thread->sth_kill) {
70 thread->sth_state = SMB_THREAD_STATE_RUNNING;
71 cv_signal(&thread->sth_cv);
72 mutex_exit(&thread->sth_mtx);
74 /* Run the real thread entr
62 smb_thread_entry_point( smb_thread_t *thread) argument
94 smb_thread_init( smb_thread_t *thread, char *name, smb_thread_ep_t ep, void *ep_arg, pri_t pri) argument
119 smb_thread_destroy( smb_thread_t *thread) argument
137 smb_thread_start( smb_thread_t *thread) argument
177 smb_thread_stop(smb_thread_t *thread) argument
227 smb_thread_signal(smb_thread_t *thread) argument
244 smb_thread_continue(smb_thread_t *thread) argument
258 smb_thread_continue_nowait(smb_thread_t *thread) argument
276 smb_thread_continue_timedwait(smb_thread_t *thread, int seconds) argument
297 smb_thread_continue_timedwait_locked(smb_thread_t *thread, int ticks) argument
[all...]
H A Dsmb_server.c154 * When a client establishes a connection the thread listening dispatches
1222 smb_server_timers(smb_thread_t *thread, void *arg) argument
1232 while (smb_thread_continue_timedwait(thread, 60 /* Seconds */)) {
1428 * requests used by the kshare thread(s).
1601 smb_server_listener(smb_thread_t *thread, void *arg) argument
1603 _NOTE(ARGUNUSED(thread))
H A Dsmb_kshare.c71 * thread calls this function.
81 * thread calls this function.
1169 * asynchronously. The function executes as a zone-specific thread.
1173 * which is also when the thread exits.
1177 smb_kshare_unexport_thread(smb_thread_t *thread, void *arg) argument
1182 while (smb_thread_continue(thread)) {
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_thread.h44 kthread_t *thread; member in struct:emlxs_thread
61 kthread_t *thread; member in struct:emlxs_taskq_thread
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/hsi/mcp/
H A Dmulti_thread_def.h35 * Description: Multi-thread definition and structures
59 // The running thread knows it is running so the only interesting state is the SLEEPING one
113 THREAD_FUNC_PTR main_func; /* Entry point to the thread. */
114 u32 start_time; /* The time that the thread started to run */
135 struct thread_t thread[NUM_THREADS]; member in struct:multi_thread_t
/illumos-gate/usr/src/uts/common/sys/
H A Dstrft.h47 * 0x8000 (RD/WR q marker) and 0x4000 (thread cs marker) are or'ed
122 * The last thread to process an event
131 void *thread; member in struct:fthdr
156 _hp->thread = curthread; \
H A Dclass.h37 #include <sys/thread.h>
103 thread_ops_t thread; member in struct:classfuncs
151 (sclass[cid].cl_funcs->thread.cl_enterclass) (t, cid, \
155 (sclass[cid].cl_funcs->thread.cl_exitclass) ((void *)clprocp)
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dpthread.c102 * pthread_create: creates a thread in the current process.
107 pthread_create(pthread_t *thread, const pthread_attr_t *attr, argument
136 * thread.
147 * policy and parameters on the new thread.
155 * actually creating the thread. To recover,
156 * mark the thread detached and cancel it.
168 } else if (thread) {
169 *thread = tid;
209 * pthread_equal: equates two thread ids.
218 * pthread_getschedparam: get the thread'
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_debug.c57 kthread_t *thread; member in struct:toptrace
74 toptrace[toptraceindex].thread = curthread;
83 toptrace[toptraceindex].thread = (kthread_t *)-1;
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/
H A Dmhd_drive.c113 /* set state and kick thread */
181 /* wait for thread to idle */
891 * disk thread
1019 * kick off drive thread
1028 thread_t thread = NULL; local
1031 /* check lock and thread */
1035 /* create thread */
1037 (void *)dp, (THR_DETACHED | THR_BOUND), &thread) != 0) {
1040 assert(thread != NULL);
1041 dp->dr_thread = thread;
[all...]
/illumos-gate/usr/src/cmd/syslogd/
H A Dsyslogd.h155 pthread_t f_thread; /* thread that handles this file */
210 * structure describing a message to be sent to the wall thread.
211 * the thread id and attributes are stored in the structure
212 * passed to the thread, and the thread is created detached.
215 pthread_t thread; member in struct:wall_device
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxpvtap.c380 * since will be doing it in a separate kernel thread.
406 * wake thread so it can cleanup and wait for it to exit so we can
426 * for the user app to exit. Notify the thread waiting that the app
468 * wake thread, thread handles guest requests and user app
579 /* wake thread to see if there are requests already queued up */
673 * user thread will spin in poll requests before getting to
718 /* initialize user ring, thread, mapping state */
760 /* wake thread, thread handle
952 xpvtap_user_thread_t *thread; local
992 xpvtap_user_thread_t *thread; local
1079 xpvtap_user_thread_t *thread; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/nsctl/
H A Dnsctl.c588 uintptr_t thread = wsp->walk_addr; local
591 if (!thread)
600 thread + OFFSETOF(nsthread_t, tp_chain)) == -1) {
628 /* move on to next thread */
643 uintptr_t thread = wsp->walk_addr; local
646 if (!thread)
649 if (thread == (uintptr_t)wsp->walk_data)
655 /* move on to next thread */
658 thread + OFFSETOF(nsthread_t, tp_link.q_forw)) == -1) {
1663 /* walk thread chain
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_srv.c292 * a delegation conflict and if so, mark the thread flag as
985 * the NFS service thread to block forever waiting for a
1047 * the cred of the current thread to be used if quota
1090 * the cred of the current thread to be used if quota
1140 kthread_t *thread; member in struct:rfs_async_write
1216 nrp->thread = curthread;
1297 rp->thread->t_flag |= t_flag;
1323 rp->thread->t_flag |= t_flag;
1370 rp->thread->t_flag |= T_WOULDBLOCK;
1425 rp->thread
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dtaskq.c34 * to be performed later, by another thread. There are several reasons
59 * the same list managed by the same thread.
65 * which has an individual thread for each of the tasks. These threads are
140 * system process. If proc != &p0, this must be called from a thread
224 * int taskq_member(tq, thread)
226 * Returns 1 if 'thread' belongs to taskq 'tq' and 0 otherwise. The
279 * | | ... | | thread | | thread | |
286 * | | ... | | thread | | thread |
1409 taskq_member(taskq_t *tq, kthread_t *thread) argument
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/
H A Dpsvcplugin.c73 pthread_t thread; member in struct:interval_info
385 /* wait for thread to tell us to start timer */
554 status = pthread_create(&ip->thread, NULL, (void *(*)())run_policies,
720 * there is a thread for this interval; tell it to stop
728 (void) pthread_join(ip->thread, NULL);
731 /* shut down the timer thread */
798 /* get timer thread running */
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcsm.c585 kthread_t *thread; local
638 thread = thread_create((caddr_t)NULL, 0, fcsm_job_thread,
640 if (thread == NULL) {
642 "port_attach: job thread create failed");
650 fcsm->sm_thread = thread;
1167 * Kill the job thread
1182 * Therefore retry timeout thread should NOT be running.
1183 * Kill the offline timeout thread if currently running.
1313 * Suspend cmd processing and start offline timeout thread.
1317 "statec_cb: schedule offline timeout thread"));
[all...]

Completed in 122 milliseconds

12