summaryrefslogtreecommitdiff
path: root/sys/src/9/port/portfns.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-09-11 02:09:07 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-09-11 02:09:07 +0200
commit7713145638f45c07c47b9ef8c859d518d88f6127 (patch)
tree00380a228d0790111d29d82d745461fd053359c4 /sys/src/9/port/portfns.h
parenta12180612649d5aebb2ca7e6c7727c41becb4549 (diff)
kernel: make randomread() fault reentrant
we now access the user buffer in randomread() outside of the lock, only copying and advancing the chacha state under the lock. this means we can use randomread() within the fault handling path now without fearing deadlock. this also allows multiple readers to generate random numbers in parallel.
Diffstat (limited to 'sys/src/9/port/portfns.h')
0 files changed, 0 insertions, 0 deletions