uevent

package
v0.0.0-...-f1656df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 3

Documentation

Overview

Package uevent provides a NETLINK_KOBJECT_UEVENT socket protocol.

NETLINK_KOBJECT_UEVENT sockets send udev-style device events. gVisor does not support any device events, so these sockets never send any messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProtocol

func NewProtocol(t *kernel.Task) (netlink.Protocol, *syserr.Error)

NewProtocol creates a NETLINK_KOBJECT_UEVENT netlink.Protocol.

Types

type Protocol

type Protocol struct{}

Protocol implements netlink.Protocol.

+stateify savable

func (*Protocol) CanSend

func (p *Protocol) CanSend() bool

CanSend implements netlink.Protocol.CanSend.

func (*Protocol) ProcessMessage

func (p *Protocol) ProcessMessage(ctx context.Context, s *netlink.Socket, msg *nlmsg.Message, ms *nlmsg.MessageSet) *syserr.Error

ProcessMessage implements netlink.Protocol.ProcessMessage.

func (*Protocol) Protocol

func (p *Protocol) Protocol() int

Protocol implements netlink.Protocol.Protocol.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL