History log of /netbsd/sys/sys/lwp.h (Results 51 – 75 of 216)
Revision Date Author Comments
# 01216dc5 02-Jan-2013 dsl <dsl@NetBSD.org>

Only expose the bulk of sys/proc.h and sys/lwp.h if _KERNEL or _KMEMUSER
is defined.
i386 and amd64 build ok.


# a16bcc3b 26-Dec-2012 matt <matt@NetBSD.org>

Add support for kernel-based code to use a PCU. (for memory to memory
copies or in_cksum or ...)


# a3b4a439 07-Oct-2012 matt <matt@NetBSD.org>

Don't give a boost to system threads.


# c18a1727 27-Sep-2012 rmind <rmind@NetBSD.org>

exit_lwps, lwp_wait: fix a race condition by re-trying if p_lock was dropped
in a case of process exit. Necessary to re-flag all LWPs for exit, as their
state might have changed or new LWPs spawned.

exit_lwps, lwp_wait: fix a race condition by re-trying if p_lock was dropped
in a case of process exit. Necessary to re-flag all LWPs for exit, as their
state might have changed or new LWPs spawned.

Should fix PR/46168 and PR/46402.

show more ...


# cd903f76 22-Jul-2012 rmind <rmind@NetBSD.org>

fork1: fix use-after-free problems. Addresses PR/46128 from Andrew Doran.
Note: PL_PPWAIT should be fully replaced and modificaiton of l_pflag by
other LWP is undesirable, but this is enough for net

fork1: fix use-after-free problems. Addresses PR/46128 from Andrew Doran.
Note: PL_PPWAIT should be fully replaced and modificaiton of l_pflag by
other LWP is undesirable, but this is enough for netbsd-6.

show more ...


# 7f056a1d 09-Jun-2012 christos <christos@NetBSD.org>

Add a new resource to limit the number of lwps per user, RLIMIT_NTHR. There
is a global sysctl kern.maxlwp to control this, which is by default 2048.
The first lwp of each process or kernel threads a

Add a new resource to limit the number of lwps per user, RLIMIT_NTHR. There
is a global sysctl kern.maxlwp to control this, which is by default 2048.
The first lwp of each process or kernel threads are not counted against the
limit. To show the current resource usage per user, I added a new sysctl
that dumps the uidinfo structure fields.

show more ...


# 7a8d7e23 21-May-2012 martin <martin@NetBSD.org>

Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid th

Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.

show more ...


# 154d3024 19-Feb-2012 rmind <rmind@NetBSD.org>

Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.


# b859b3c6 22-Jan-2012 plunky <plunky@NetBSD.org>

fix comment (SRUN->LSRUN, SONPROC->LSONPROC)


# e3d1b39c 21-Nov-2011 christos <christos@NetBSD.org>

change printf gcc attribute to __printflike(), requested by joerg.


# 04023c99 20-Nov-2011 christos <christos@NetBSD.org>

add more missing printf attributes.


# ad7e9962 31-Oct-2011 yamt <yamt@NetBSD.org>

- make lendpri/changepri similar.
- make common code a subroutine.


# 1a2935c6 07-Aug-2011 rmind <rmind@NetBSD.org>

Remove LW_AFFINITY flag and fix some bugs affinity mask handling.


# 000492e6 07-Aug-2011 rmind <rmind@NetBSD.org>

Rename slightly misleading KTHREAD_JOINABLE to KTHREAD_MUSTJOIN.


# 01280861 07-Aug-2011 rmind <rmind@NetBSD.org>

Add kcpuset(9) - a reworked dynamic CPU set implementation for kernel.
Suitable for use during the early boot. MD and other implementations
should be replaced with this interface.

Discussed on: tec

Add kcpuset(9) - a reworked dynamic CPU set implementation for kernel.
Suitable for use during the early boot. MD and other implementations
should be replaced with this interface.

Discussed on: tech-kern@

show more ...


# c7ed5406 19-May-2011 rmind <rmind@NetBSD.org>

Re-implement kthread_join(9), so that it actually works (hi haad@).


# de6381ff 02-May-2011 rmind <rmind@NetBSD.org>

Limit sys/pcu.h inclusion within _KERNEL scope, plus _KMEMUSER.


# f375ac4b 08-Mar-2011 pooka <pooka@NetBSD.org>

Nuke all threads belonging to a process calling exec before allowing
the exec handshake to return.

In addition to being The Right Thing To Do, fixes some nasty
conditions for CLOEXEC fd's (or at lea

Nuke all threads belonging to a process calling exec before allowing
the exec handshake to return.

In addition to being The Right Thing To Do, fixes some nasty
conditions for CLOEXEC fd's (or at least does so in theory, I
couldn't create any problems although I tried).

show more ...


# b94483df 21-Feb-2011 pooka <pooka@NetBSD.org>

Borrow the lwpctl data area from the parent for the vfork() child.
Otherwise the child will incorrectly see it is not running on any
CPU. Among other things, this fixes crashes from having
LD_PRELOA

Borrow the lwpctl data area from the parent for the vfork() child.
Otherwise the child will incorrectly see it is not running on any
CPU. Among other things, this fixes crashes from having
LD_PRELOAD=libpthread.so set in the env.

reviewed by tech-kern

show more ...


# ccf70fa7 19-Feb-2011 matt <matt@NetBSD.org>

Default PCU_UNIT_COUNT to 0. If 0, don't compile the contents of subr_pcu.c
and don't include the pcu related members into struct lwp.


# 509633cf 19-Feb-2011 jakllsch <jakllsch@NetBSD.org>

Move lwp_getpcb() into a (_KERNEL || _KMEMUSER) ifdef. Unbreaks crash(8).


# ab5219b6 17-Feb-2011 christos <christos@NetBSD.org>

Need pcu.h unconditionally.


# ae31c7b5 17-Feb-2011 christos <christos@NetBSD.org>

don't include things twice.


# 3d1593b1 17-Feb-2011 matt <matt@NetBSD.org>

Move lwp_getpcb to the area with the rest of the _KERNEL function declarations.


# 99384b14 17-Feb-2011 rmind <rmind@NetBSD.org>

Add PCU (Per-CPU Unit) - an interface to manage synchronization of any
per CPU context tied with an LWP. Main use - lazy FPU handling on SMP.

Requested by matt@, will be used on mips64. Note: impl

Add PCU (Per-CPU Unit) - an interface to manage synchronization of any
per CPU context tied with an LWP. Main use - lazy FPU handling on SMP.

Requested by matt@, will be used on mips64. Note: implementation will
be improved to use IPIs before adopting on x86. OK ad@.

show more ...


123456789