MCPcopy Create free account
hub / github.com/F-Stack/f-stack / syscall_thread_exit

Function syscall_thread_exit

freebsd/kern/kern_syscalls.c:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void
100syscall_thread_exit(struct thread *td, struct sysent *se)
101{
102 u_int32_t cnt, oldcnt;
103
104 KASSERT((se->sy_thrcnt & SY_THR_STATIC) == 0,
105 ("%s: not a static syscall", __func__));
106
107 do {
108 oldcnt = se->sy_thrcnt;
109 cnt = oldcnt - SY_THR_INCR;
110 } while (atomic_cmpset_rel_32(&se->sy_thrcnt, oldcnt, cnt) == 0);
111}
112
113int
114kern_syscall_register(struct sysent *sysents, int *offset,

Callers 1

syscallenterFunction · 0.85

Calls 1

atomic_cmpset_rel_32Function · 0.85

Tested by

no test coverage detected