Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + type Registry struct + func NewRegistry(userNS *auth.UserNamespace) *Registry + func (r *Registry) FindByID(id ipc.ID) *Set + func (r *Registry) FindByIndex(index int32) *Set + func (r *Registry) FindOrCreate(ctx context.Context, key ipc.Key, nsems int32, mode linux.FileMode, ...) (*Set, error) + func (r *Registry) HighestIndex() int32 + func (r *Registry) IPCInfo() *linux.SemInfo + func (r *Registry) Remove(id ipc.ID, creds *auth.Credentials) error + func (r *Registry) SemInfo() *linux.SemInfo + type Set struct + func (s *Set) AbortWait(num int32, ch chan struct{}) + func (s *Set) CountNegativeWaiters(num int32, creds *auth.Credentials) (uint16, error) + func (s *Set) CountZeroWaiters(num int32, creds *auth.Credentials) (uint16, error) + func (s *Set) Destroy() + func (s *Set) ExecuteOps(ctx context.Context, ops []linux.Sembuf, creds *auth.Credentials, pid int32) (chan struct{}, int32, error) + func (s *Set) GetPID(num int32, creds *auth.Credentials) (int32, error) + func (s *Set) GetStat(creds *auth.Credentials) (*linux.SemidDS, error) + func (s *Set) GetStatAny(creds *auth.Credentials) (*linux.SemidDS, error) + func (s *Set) GetVal(num int32, creds *auth.Credentials) (int16, error) + func (s *Set) GetValAll(creds *auth.Credentials) ([]uint16, error) + func (s *Set) ID() ipc.ID + func (s *Set) Lock() + func (s *Set) Object() *ipc.Object + func (s *Set) Set(ctx context.Context, ds *linux.SemidDS) error + func (s *Set) SetVal(ctx context.Context, num int32, val int16, creds *auth.Credentials, pid int32) error + func (s *Set) SetValAll(ctx context.Context, vals []uint16, creds *auth.Credentials, pid int32) error + func (s *Set) Size() int + func (s *Set) Unlock()