summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-02-22 17:24:54 +0000
committerjhb <jhb@FreeBSD.org>2006-02-22 17:24:54 +0000
commit82b4c8972021decda7584eb5dce699df1de06416 (patch)
treed5d791153e687943b767b5f723695b30665a82e2 /sys/dev/sio/sio.c
parentc5b264075022c686947465fe6278ed016b244126 (diff)
downloadFreeBSD-src-82b4c8972021decda7584eb5dce699df1de06416.zip
FreeBSD-src-82b4c8972021decda7584eb5dce699df1de06416.tar.gz
Change pfs_visible() to optionally return a pointer to the process
associated with the passed in pfs_node. If it does return a pointer, it keeps the process locked. This allows a lot of places that were calling pfind() again right after pfs_visible() to not have to do that and avoids races since we don't drop the proc lock just to turn around and lock it again. This will become more important with future changes to fix races between procfs/ptrace and exit(2). Also, removed a duplicate pfs_visible() call in pfs_getextattr(). Reviewed by: des MFC after: 1 week
Diffstat (limited to 'sys/dev/sio/sio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud