]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Report ref count of the backing object as st_nlink for posix shm fd.
authorkib <kib@FreeBSD.org>
Thu, 23 May 2019 12:27:45 +0000 (12:27 +0000)
committerkib <kib@FreeBSD.org>
Thu, 23 May 2019 12:27:45 +0000 (12:27 +0000)
commitb45119a2cba33d3fb386defa4df7f3a20aaa0030
tree897bb4081cec2ebd0bc5aea05391cc980c5ff3b8
parentf6d894c8f2afb51786f37ef95eedb365fb1833b4
Report ref count of the backing object as st_nlink for posix shm fd.

Unless there are transient references to the object, the ref count is
equal to the number of the shared memory segment mappings plus one.

Reviewed by: jilles, tmunro
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D20258
sys/kern/uipc_shm.c