Class: Nl::Linux::Sunrpc
- Inherits:
-
Genl::Family
- Object
- Family
- Genl::Family
- Nl::Linux::Sunrpc
- Defined in:
- nl-linux/generated/nl/linux/sunrpc_cache.rb
Overview
SUNRPC cache upcall support over generic netlink.
Defined Under Namespace
Modules: AttributeSets, Flags, Messages, Notifications, Structs Classes: AsyncOperations
Constant Summary collapse
- NAME =
"sunrpc"- VERSION =
1
Class Method Summary collapse
Instance Method Summary collapse
-
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
-
#do_cache_flush(**args) ⇒ void
Flush sunrpc caches (ip_map and/or unix_gid).
-
#do_ip_map_set_reqs(**args) ⇒ void
Respond to one or more ip_map requests.
-
#do_unix_gid_set_reqs(**args) ⇒ void
Respond to one or more unix_gid requests.
-
#dump_ip_map_get_reqs(**args, &block) ⇒ Object
Dump all pending ip_map requests.
-
#dump_unix_gid_get_reqs(**args, &block) ⇒ Object
Dump all pending unix_gid requests.
- #subscribe(*groups) ⇒ self
- #unsubscribe(*groups) ⇒ self
Methods inherited from Genl::Family
Class Method Details
.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ Sunrpc .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object
26 27 28 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.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.
605 606 607 608 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 605 def async(stream_capacity: nil) return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil? build_async_facade(AsyncOperations, stream_capacity:) end |
#do_cache_flush(**args) ⇒ void
This method returns an undefined value.
Flush sunrpc caches (ip_map and/or unix_gid)
Requires CAP_NET_ADMIN in the initial user namespace.
539 540 541 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 539 def do_cache_flush(**args) (:"do", Messages::DoCacheFlushRequest, nil, args) end |
#do_ip_map_set_reqs(**args) ⇒ void
This method returns an undefined value.
Respond to one or more ip_map requests
Requires CAP_NET_ADMIN in the initial user namespace.
499 500 501 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 499 def do_ip_map_set_reqs(**args) (:"do", Messages::DoIpMapSetReqsRequest, nil, args) end |
#do_unix_gid_set_reqs(**args) ⇒ void
This method returns an undefined value.
Respond to one or more unix_gid requests
Requires CAP_NET_ADMIN in the initial user namespace.
528 529 530 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 528 def do_unix_gid_set_reqs(**args) (:"do", Messages::DoUnixGidSetReqsRequest, nil, args) end |
#dump_ip_map_get_reqs(**args) ⇒ Array<Messages::DumpIpMapGetReqsReply> #dump_ip_map_get_reqs(**args) {|reply| ... } ⇒ void
Dump all pending ip_map requests
Requires CAP_NET_ADMIN in the initial user namespace.
488 489 490 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 488 def dump_ip_map_get_reqs(**args, &block) (:"dump", Messages::DumpIpMapGetReqsRequest, Messages::DumpIpMapGetReqsReply, args, &block) end |
#dump_unix_gid_get_reqs(**args) ⇒ Array<Messages::DumpUnixGidGetReqsReply> #dump_unix_gid_get_reqs(**args) {|reply| ... } ⇒ void
Dump all pending unix_gid requests
Requires CAP_NET_ADMIN in the initial user namespace.
517 518 519 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 517 def dump_unix_gid_get_reqs(**args, &block) (:"dump", Messages::DumpUnixGidGetReqsRequest, Messages::DumpUnixGidGetReqsReply, args, &block) end |
#subscribe(*groups) ⇒ self
612 613 614 615 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 612 def subscribe(*groups) = super # @rbs (*(:none | :exportd) groups) -> self # @param [Array<:none, :exportd>] groups # @return [self] |
#unsubscribe(*groups) ⇒ self
616 |
# File 'nl-linux/generated/nl/linux/sunrpc_cache.rb', line 616 def unsubscribe(*groups) = super |