Class: OsCtl::Lib::KernelKeyring::KeyUser

Inherits:
Struct
  • Object
show all
Defined in:
lib/libosctl/kernel_keyring.rb

Instance Attribute Summary collapse

Instance Attribute Details

#maxbytesInteger (readonly)

Returns The upper limit on the number of bytes in key payloads for the user.

Returns:

  • (Integer)

    The upper limit on the number of bytes in key payloads for the user



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)

#maxkeysInteger (readonly)

Returns The maximum number of keys that the user may own.

Returns:

  • (Integer)

    The maximum number of keys that the user may own



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)

#nikeysInteger (readonly)

Returns The number of ‘nkeys` that have been instantiated.

Returns:

  • (Integer)

    The number of ‘nkeys` that have been instantiated



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)

#nkeysInteger (readonly)

Returns The total number of keys owned by the user.

Returns:

  • (Integer)

    The total number of keys owned by the user



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)

#qnbytesInteger (readonly)

Returns The number of bytes consumed in payloads of the keys owned by this user.

Returns:

  • (Integer)

    The number of bytes consumed in payloads of the keys owned by this user



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)

#qnkeysInteger (readonly)

Returns The number of keys owned by the user.

Returns:

  • (Integer)

    The number of keys owned by the user



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)

#uidInteger (readonly)

Returns User ID.

Returns:

  • (Integer)

    User ID



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)

#usageInteger (readonly)

Returns Kernel-internal usage count.

Returns:

  • (Integer)

    Kernel-internal usage count



20
21
22
23
24
25
26
27
28
29
# File 'lib/libosctl/kernel_keyring.rb', line 20

KeyUser = Struct.new(
  :uid,
  :usage,
  :nkeys,
  :nikeys,
  :qnkeys,
  :maxkeys,
  :qnbytes,
  :maxbytes
)