Date: Sun, 30 Apr 2017 12:56:10 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Drake Talley <axylos@doge.city> Cc: freebsd-arch@freebsd.org Subject: Re: sysctl for named posix semaphores Message-ID: <20170430095610.GS1622@kib.kiev.ua> In-Reply-To: <20170430014100.GA30802@kunai.nyc.rr.com> References: <20170429154018.GA3703@kunai.nyc.rr.com> <20170430091638.GR1622@kib.kiev.ua> <20170430014100.GA30802@kunai.nyc.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 29, 2017 at 09:41:00PM -0400, Drake Talley wrote: > Ah thanks for cleaing that up; sorry for coming at it from left field. > Really appreciate the explanation though! Note that the fact that kernel does not support 'POSIX semaphores' objects, does not make impossible to get some information about existing named semaphores for the debugging purposes. Eg. low-tech method 'ls -l /dev/SEMD*' would list files backing the named semaphores and show the ownership information. fstat(1) -m or procstat(8) -v show the processes which currently have specific semaphore open (AKA mapped). Current state of the semaphore can be inspected with any file dump tool, even with hexdump(1). Anonymous semaphores are somewhat harder to observe.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170430095610.GS1622>