dev

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TTYs

func TTYs() (*[]TTY, error)

TTYs parses /dev for tty and pts devices.

Types

type TTY

type TTY struct {
	// Minor device number.
	Minor uint64
	// Major device number.
	Major uint64
	// Path to the tty device.
	Path string
}

TTY represents a tty including its minor and major device number and the path to the tty.

func FindTTY

func FindTTY(ttyNr uint64, devices *[]TTY) (*TTY, error)

FindTTY return the corresponding TTY to the ttyNr or nil of non could be found.

Jump to

Keyboard shortcuts

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