Class: Nl::Linux::Lockd

Inherits:
Genl::Family show all
Defined in:
nl-linux/generated/nl/linux/lockd.rb

Overview

lockd configuration over generic netlink

Defined Under Namespace

Modules: AttributeSets, Messages, Notifications, Structs Classes: AsyncOperations

Constant Summary collapse

NAME =
"lockd"
VERSION =
1

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Genl::Family

version

Class Method Details

.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ Lockd .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object

Overloads:

  • .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ Lockd

    Parameters:

    • resolver (#call) (defaults to: ::Nl::Linux::DEFAULT_RESOLVER)
    • executor (Symbol, nil) (defaults to: nil)
    • notification_capacity (Integer, nil) (defaults to: DEFAULT_NOTIFICATION_CAPACITY)

    Returns:

  • .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object

    Returns the result of the block.

    Parameters:

    • resolver (#call) (defaults to: ::Nl::Linux::DEFAULT_RESOLVER)
    • executor (Symbol, nil) (defaults to: nil)
    • notification_capacity (Integer, nil) (defaults to: DEFAULT_NOTIFICATION_CAPACITY)

    Yield Parameters:

    Returns:

    • (Object) —

      the result of the block



26
27
28
# File 'nl-linux/generated/nl/linux/lockd.rb', line 26

def self.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
  super
end

Instance Method Details

#async(stream_capacity: nil) ⇒ AsyncOperations

Returns the asynchronous operation facade for this family.

Parameters:

  • stream_capacity (::Integer, nil) (defaults to: nil)

Returns:



199
200
201
202
# File 'nl-linux/generated/nl/linux/lockd.rb', line 199

def async(stream_capacity: nil)
  return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil?
  build_async_facade(AsyncOperations, stream_capacity:)
end

#do_server_get(**args) ⇒ Messages::DoServerGetReply

get the lockd server parameters

Parameters:

  • args (Hash)

Returns:

See Also:



165
166
167
# File 'nl-linux/generated/nl/linux/lockd.rb', line 165

def do_server_get(**args)
  exchange_message(:"do", Messages::DoServerGetRequest, Messages::DoServerGetReply, args)
end

#do_server_set(**args) ⇒ void

This method returns an undefined value.

set the lockd server parameters

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • gracetime (Integer)
  • tcp_port (Integer)
  • udp_port (Integer)

See Also:



157
158
159
# File 'nl-linux/generated/nl/linux/lockd.rb', line 157

def do_server_set(**args)
  exchange_message(:"do", Messages::DoServerSetRequest, nil, args)
end