Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 127) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_thread.c37 iscsi_thread_t *thread; in iscsi_thread_create() local
39 thread = kmem_zalloc(sizeof (iscsi_thread_t), KM_SLEEP); in iscsi_thread_create()
41 if (thread != NULL) { in iscsi_thread_create()
43 thread->tq = ddi_taskq_create(dip, name, 1, in iscsi_thread_create()
46 if (thread->tq != NULL) { in iscsi_thread_create()
47 thread->signature = SIG_ISCSI_THREAD; in iscsi_thread_create()
48 thread->dip = dip; in iscsi_thread_create()
49 thread->entry_point = entry_point; in iscsi_thread_create()
50 thread->arg = arg; in iscsi_thread_create()
51 thread->state = ISCSI_THREAD_STATE_STOPPED; in iscsi_thread_create()
[all …]
H A Discsi_thread.h85 iscsi_thread_t *thread
90 iscsi_thread_t *thread
95 iscsi_thread_t *thread
100 iscsi_thread_t *thread
105 iscsi_thread_t *thread
110 iscsi_thread_t *thread,
116 iscsi_thread_t *thread
H A Discsid.c51 static void iscsid_thread_static(iscsi_thread_t *thread, void *p);
52 static void iscsid_thread_sendtgts(iscsi_thread_t *thread, void *p);
53 static void iscsid_thread_isns(iscsi_thread_t *thread, void *p);
54 static void iscsid_thread_slp(iscsi_thread_t *thread, void *p);
55 static void iscsid_thread_boot_wd(iscsi_thread_t *thread, void *p);
1697 iscsid_thread_static(iscsi_thread_t *thread, void *p) in iscsid_thread_static() argument
1705 while (iscsi_thread_wait(thread, -1) != 0) { in iscsid_thread_static()
1748 iscsid_thread_sendtgts(iscsi_thread_t *thread, void *p) in iscsid_thread_sendtgts() argument
1755 while (iscsi_thread_wait(thread, -1) != 0) { in iscsid_thread_sendtgts()
1790 iscsid_thread_slp(iscsi_thread_t *thread, void *p) in iscsid_thread_slp() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_thread.c65 smb_thread_t *thread) in smb_thread_entry_point() argument
67 ASSERT(thread->sth_magic == SMB_THREAD_MAGIC); in smb_thread_entry_point()
68 mutex_enter(&thread->sth_mtx); in smb_thread_entry_point()
69 ASSERT(thread->sth_state == SMB_THREAD_STATE_STARTING); in smb_thread_entry_point()
71 if (!thread->sth_kill) { in smb_thread_entry_point()
72 thread->sth_state = SMB_THREAD_STATE_RUNNING; in smb_thread_entry_point()
73 cv_signal(&thread->sth_cv); in smb_thread_entry_point()
74 mutex_exit(&thread->sth_mtx); in smb_thread_entry_point()
77 thread->sth_ep(thread, thread->sth_ep_arg); in smb_thread_entry_point()
79 mutex_enter(&thread->sth_mtx); in smb_thread_entry_point()
[all …]
/illumos-gate/usr/src/uts/sun4/ml/
H A Dswtch.S90 brnz,pt %o4, 0f ! if user thread skip
94 ! kernel thread
113 ! user thread
144 mov THREAD_REG, %o0 ! delay - arg = thread pointer
149 ! Temporarily switch to idle thread's stack
161 stn %o0, [%i1 + CPU_THREAD] ! set CPU's thread to idle
164 ! Clear and unlock previous thread's t_lock
214 ! if resume from user to kernel thread
216 ! if resume from kernel (or a different user) thread to user thread
275 ! it becomes safe for the thread to run.
[all …]
H A Dproc_init.S106 ! It is very important to have a thread pointer and a cpu struct
118 ldn [%l3 + CPU_THREAD], THREAD_REG ! set thread pointer (%g7)
132 ! Resume the thread allocated for the CPU.
136 ret ! "return" into the thread
H A Dinterrupt.S344 ! See if we are interrupting another interrupt thread.
351 ! We have interrupted an interrupt thread. Take a timestamp,
357 ! We came in on top of an interrupt thread that had no timestamp.
358 ! This could happen if, for instance, an interrupt thread which had
369 ! for the time slice, we want to "atomically" load the thread's
467 ! Push interrupted thread onto list from new thread.
468 ! Set the new thread as the current one.
469 ! Set interrupted thread's T_SP because if it is the idle thread,
732 ! Switch back to the interrupted thread and return
738 ! If we pinned an interrupt thread, store its starting timestamp.
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxpvtap.c950 xpvtap_user_thread_t *thread; in xpvtap_user_thread_init() local
954 thread = &state->bt_thread; in xpvtap_user_thread_init()
956 mutex_init(&thread->ut_mutex, NULL, MUTEX_DRIVER, NULL); in xpvtap_user_thread_init()
957 cv_init(&thread->ut_wake_cv, NULL, CV_DRIVER, NULL); in xpvtap_user_thread_init()
958 cv_init(&thread->ut_exit_done_cv, NULL, CV_DRIVER, NULL); in xpvtap_user_thread_init()
959 thread->ut_wake = B_FALSE; in xpvtap_user_thread_init()
960 thread->ut_exit = B_FALSE; in xpvtap_user_thread_init()
961 thread->ut_exit_done = B_TRUE; in xpvtap_user_thread_init()
965 thread->ut_taskq = ddi_taskq_create(state->bt_dip, taskqname, 1, in xpvtap_user_thread_init()
967 if (thread->ut_taskq == NULL) { in xpvtap_user_thread_init()
[all …]
/illumos-gate/usr/src/common/amdzen/
H A Dzen_fabric_utils.c103 const uint32_t core, const uint32_t thread) in zen_apic_id_valid_parts() argument
132 if (((thread << decomp->aad_thread_shift) & in zen_apic_id_valid_parts()
146 const uint32_t core, const uint32_t thread, uint32_t *apicid) in zen_apic_id_compose() argument
151 thread)); in zen_apic_id_compose()
152 id = thread << decomp->aad_thread_shift; in zen_apic_id_compose()
/illumos-gate/usr/src/uts/common/sys/
H A Drwlock_impl.h52 #define RW_WRITE_LOCK(thread) ((uintptr_t)(thread) | RW_WRITE_LOCKED) argument
H A Dstrft.h131 void *thread; member
156 _hp->thread = curthread; \
H A Dclass.h103 thread_ops_t thread; member
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/libsqlite/test/
H A Dlock.test154 # If one thread has a transaction another thread cannot start
163 # Nor can the other thread do a query.
170 # If the other thread (the one that does not hold the transaction)
208 # the first thread to release its transaction. That allows the
209 # second thread to continue.
291 # When one thread is writing, other threads cannot read. Except if the
292 # writing thread is writing to its temporary tables, the other threads
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_thread.h44 kthread_t *thread; member
61 kthread_t *thread; member
/illumos-gate/usr/src/boot/sys/amd64/include/
H A Dsegments.h101 void update_gdt_gsbase(struct thread *td, uint32_t base);
102 void update_gdt_fsbase(struct thread *td, uint32_t base);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/threadname/
H A Dtst.threadname.c67 thread(void *arg) in thread() function
93 if (pthread_create(&tids[i], NULL, thread, NULL) != 0) in main()
/illumos-gate/usr/src/test/os-tests/tests/
H A Ducontext.c68 thread(void *arg __unused) in thread() function
99 VERIFY0(pthread_create(&tid, NULL, thread, NULL)); in main()
/illumos-gate/usr/src/cmd/acpi/common/
H A Dosunixxf.c1608 pthread_t thread; in AcpiOsGetThreadId() local
1611 thread = pthread_self(); in AcpiOsGetThreadId()
1612 return (ACPI_CAST_PTHREAD_T (thread)); in AcpiOsGetThreadId()
1636 pthread_t thread; in AcpiOsExecute() local
1640 ret = pthread_create (&thread, NULL, (PTHREAD_CALLBACK) Function, Context); in AcpiOsExecute()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dpthread.c107 pthread_create(pthread_t *thread, const pthread_attr_t *attr, in pthread_create() argument
168 } else if (thread) { in pthread_create()
169 *thread = tid; in pthread_create()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dtsd.c84 kthread_t thread, *t = &thread; in ttotsd() local
/illumos-gate/usr/src/test/os-tests/tests/xsave/
H A Dmdb_xregs.ksh110 ::tmodel thread
111 ::fpregs ! cat > $fpregs.thread
/illumos-gate/usr/src/boot/sys/sys/
H A Dimgact_aout.h150 struct thread;
153 int aout_coredump(struct thread *td, struct vnode *vp, off_t limit,
/illumos-gate/usr/src/tools/btxld/
H A Dimgact_aout.h150 struct thread;
153 int aout_coredump(struct thread *td, struct vnode *vp, off_t limit,
/illumos-gate/usr/src/test/net-tests/tests/ipv6/
H A Ddup_bind.py66 thread: Thread
99 self.thread = Thread(target=self.server_thread, name=self.name, daemon=True)
100 self.thread.start()
/illumos-gate/usr/src/cmd/bhyve/common/
H A Dtpm_intf_crb.c173 pthread_t thread; member
499 error = pthread_create(&crb->thread, NULL, tpm_crb_thread, crb); in tpm_crb_init()
505 pthread_set_name_np(crb->thread, "tpm_intf_crb"); in tpm_crb_init()
531 pthread_join(crb->thread, NULL); in tpm_crb_deinit()

123456