I have been looking at the issues on Inter-Process Communication in
SoftHSMv2. The current issue is that OpenBSD does not implement POSIX
Semaphores and NetBSD/Solaris has a maximum length of 14 characters on the
names of the named semaphores. I tried to convert it over to System V
semaphores, but then we have an issue that we hit the maximum number
of semaphores and that there is no good equivalent to sem_unlink().
There will potentially also be a problem with the number of objects. Both in number of objects per directory, but also that there is a semaphore per object.
May be the file storage should be re-designed?