Class: Nl::Linux::Nfsd::Messages::DoThreadsSetRequest

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/nfsd.rb

Overview

set the maximum number of running threads

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
2
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Server
ATTRIBUTES =
Ractor.make_shareable(%i[threads gracetime leasetime scope min_threads fh_key])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#fh_key ⇒ String

Returns:

  • (String)

See Also:



1365
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1365

def fh_key; attributes[:"fh_key"]&.value; end

#gracetime ⇒ Integer

Returns:

  • (Integer)

See Also:



1349
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1349

def gracetime; attributes[:"gracetime"]&.value; end

#leasetime ⇒ Integer

Returns:

  • (Integer)

See Also:



1353
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1353

def leasetime; attributes[:"leasetime"]&.value; end

#min_threads ⇒ Integer

Returns:

  • (Integer)

See Also:



1361
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1361

def min_threads; attributes[:"min_threads"]&.value; end

#scope ⇒ String

Returns:

  • (String)

See Also:



1357
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1357

def scope; attributes[:"scope"]&.value; end

#threads ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



1345
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1345

def threads; attributes[:"threads"].map(&:value); end