package ioctl

import "github.com/hanwen/go-fuse/v2/internal/ioctl"

Index

Constants

const (
	NONE  = 0x0
	READ  = 0x1
	WRITE = 0x2
)

Types

type Command

type Command uint32

The ioctl command. It encodes direction (read/write), argument size and a type/number, where type should be globally unique and number is unique to the driver.

func New

func New(dir byte, typ byte, nr byte, size uintptr) Command

New constructs an ioctl command. size should be less than 16kb.

func (Command) Number

func (c Command) Number() byte

Number returns the lower 8 bits of the command

func (Command) Read

func (c Command) Read() bool

Read returns true if the ioctl reads data

func (Command) Type

func (c Command) Type() byte

Type returns the upper 8 bits of the command

func (Command) Write

func (c Command) Write() bool

Write returns true if the ioctl writes data

Source Files

ioctl.go

Version
v2.8.0 (latest)
Published
Jun 11, 2025
Platform
linux/amd64
Last checked
8 hours ago

Tools for package owners.