summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_futex.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove the Linux emulation code, no longer referenced by anythingnaddy2016-03-021-753/+0
|
* The futex_pool and futex_wp_pool pools never get used in interrupt context.kettenis2015-09-041-4/+4
| | | | ok mlarkin@
* Release CPU mutexes on EINVAL.doug2014-08-201-2/+3
| | | | ok guenther@
* Start to deal with the time_t change's effect on compat/linux:guenther2013-10-251-3/+3
| | | | | | | | | | | | | | - add Linux versions of struct rusage, timeval, and itimerval and conversion functions for them - add Linux versions of getrusage(), gettimeofday(), {set,get}itimer(), and nanosleep() - fix various inconsistencies in naming of Linux versions of types and conversion functions - add mappings for LINUX_CLOCK_{PROCESS,THREAD}_CPUTIME_ID to the native versions Originally written months ago as part of the time_t work; long memory, prodding, and ok from pirofti@
* futex: Prevent multiple futex pool initializations.pirofti2013-04-101-5/+10
| | | | | This is a temporary (ugly) fix, the pool init call should be moved from linux_elf_probe into a better place.
* futex: Sprinkle a few debug printfs that helped me in the past.pirofti2013-04-101-1/+8
|
* futex: Assert that the refcount is larger than 0 when doing futex_put.pirofti2013-04-101-1/+2
|
* Process futex requeuing even when the thread times out or is signaled.guenther2013-01-151-12/+24
| | | | | Bug report from frantisek holop (minusf at obiit.org) ok pirofiti@
* Use a more descriptive name for the userland cas operation.pirofti2012-11-191-2/+2
| | | | | | | Substitute atomic_ucas_32 with futex_atomic_ucas_int32 to make it obvious who's using this api. Suggested by and okay kettenis@.
* Count should always start from zero.pirofti2012-06-191-4/+2
| | | | | | Doesn't matter if we need to relocate or not. Makes sense to jasper@
* Set the appropiate return value on futex wait.pirofti2012-06-191-1/+2
| | | | Okay jasper@
* Avoid eternal sleep.pirofti2012-06-191-3/+3
| | | | | | | Sleep on the actual data address and not on the stack address of the pointer to the data. Okay jasper@
* Add extra argument validation for the futex syscall.pirofti2012-06-191-6/+31
| | | | Okay jasper@
* - remove outdated comment, we already do an equivalent of linux' access_ok()jasper2012-06-191-3/+1
| | | | | | using copyin() anyway. ok pirofti@
* Improve debug output and fix some style. No functional change.pirofti2012-06-191-30/+39
|
* Change the pool_get() flags from WAITOK to NOWAIT.pirofti2012-06-191-4/+8
| | | | | | | | | This avoids a potential lost-wakeup as pointed out by guenther@. Now the futex is locked all through the process and EAGAIN is returned on failure. Makes sense to guenther@.
* compat_linux: Don't hold the lock while pool_get'ing with WAITOK.pirofti2012-06-161-1/+3
| | | | Okay jasper@.
* Add futex support for compat/linux.pirofti2011-09-181-0/+690
Based on Emmanuel Dreyfus work with additions, tricks and adaptations by me. Lots of help and reviewing by guenther@ and oga@. Okay guenther@.