ioctl

package
Version: v0.0.0-...-5cdaeaf Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ioctl defines I/O control codes for mass storage drivers and volume mounts.

Index

Constants

This section is empty.

Variables

View Source
var (
	MountMgrCreatePoint               = ioctlcode.New(ioctltype.MountMgr, 0, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_CREATE_POINT
	MountMgrDeletePoints              = ioctlcode.New(ioctltype.MountMgr, 1, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_DELETE_POINTS
	MountMgrQueryPoints               = ioctlcode.New(ioctltype.MountMgr, 2, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_MOUNTMGR_QUERY_POINTS
	MountMgrDeletePointsDBOnly        = ioctlcode.New(ioctltype.MountMgr, 3, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_DELETE_POINTS_DBONLY
	MountMgrNextDriveLetter           = ioctlcode.New(ioctltype.MountMgr, 4, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_NEXT_DRIVE_LETTER
	MountMgrAutoDLAssignments         = ioctlcode.New(ioctltype.MountMgr, 5, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_AUTO_DL_ASSIGNMENTS
	MountMgrVolumeMountPointCreated   = ioctlcode.New(ioctltype.MountMgr, 6, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED
	MountMgrVolumeMountPointDeleted   = ioctlcode.New(ioctltype.MountMgr, 7, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_DELETED
	MountMgrChangeNotify              = ioctlcode.New(ioctltype.MountMgr, 8, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_MOUNTMGR_CHANGE_NOTIFY
	MountMgrKeepLinksWhenOffline      = ioctlcode.New(ioctltype.MountMgr, 9, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTMGR_KEEP_LINKS_WHEN_OFFLINE
	MountMgrCheckUnprocessedVolumes   = ioctlcode.New(ioctltype.MountMgr, 10, ioctlcode.MethodBuffered, ioctlcode.AccessRead)     // IOCTL_MOUNTMGR_CHECK_UNPROCESSED_VOLUMES
	MountMgrVolumeArrivalNotification = ioctlcode.New(ioctltype.MountMgr, 11, ioctlcode.MethodBuffered, ioctlcode.AccessRead)     // IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION
)

I/O control codes for interaction with the mount manager.

View Source
var (
	MountDevQueryUniqueID          = ioctlcode.New(ioctltype.MountDev, 0, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_MOUNTDEV_QUERY_UNIQUE_ID
	MountDevUniqueIDChangeNotify   = ioctlcode.New(ioctltype.MountDev, 1, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY
	MountDevQueryDeviceName        = ioctlcode.New(ioctltype.MountDev, 2, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_MOUNTDEV_QUERY_DEVICE_NAME
	MountDevQuerySuggestedLinkName = ioctlcode.New(ioctltype.MountDev, 3, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME
	MountDevLinkCreated            = ioctlcode.New(ioctltype.MountDev, 4, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTDEV_LINK_CREATED
	MountDevLinkDeleted            = ioctlcode.New(ioctltype.MountDev, 5, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_MOUNTDEV_LINK_DELETED
	MountDevQueryStableGUID        = ioctlcode.New(ioctltype.MountDev, 6, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_MOUNTDEV_QUERY_STABLE_GUID
)

I/O control codes for interaction with mounted devices.

View Source
var (
	StorageCheckVerify       = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0200, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_STORAGE_CHECK_VERIFY
	StorageCheckVerify2      = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0200, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_CHECK_VERIFY2
	StorageEjectMedia        = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0202, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_STORAGE_EJECT_MEDIA
	StorageEjectionControl   = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0250, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_EJECTION_CONTROL
	StorageFindNewDevices    = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0206, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_STORAGE_FIND_NEW_DEVICES
	StorageGetDeviceNumber   = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0420, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_GET_DEVICE_NUMBER
	StorageMediaSerialNumber = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0304, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER
	StorageGetMediaTypes     = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0300, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_GET_MEDIA_TYPES
	StorageGetMediaTypesEx   = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0301, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_GET_MEDIA_TYPES_EX
	StorageLoadMedia         = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0203, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_STORAGE_LOAD_MEDIA
	StorageLoadMedia2        = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0203, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_LOAD_MEDIA2
	StorageMCNControl        = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0251, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_MCN_CONTROL
	StorageMediaRemoval      = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0201, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_STORAGE_MEDIA_REMOVAL
	StoragePredictFailure    = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0440, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_PREDICT_FAILURE
	StorageQueryProperty     = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0500, ioctlcode.MethodBuffered, ioctlcode.AccessAny)       // IOCTL_STORAGE_QUERY_PROPERTY
	StorageRelease           = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0205, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_STORAGE_RELEASE
	StorageReserve           = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0204, ioctlcode.MethodBuffered, ioctlcode.AccessRead)      // IOCTL_STORAGE_RESERVE
	StorageResetBus          = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0400, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_STORAGE_RESET_BUS
	StorageResetDevice       = ioctlcode.New(ioctltype.DeviceMassStorage, 0x0401, ioctlcode.MethodBuffered, ioctlcode.AccessReadWrite) // IOCTL_STORAGE_RESET_DEVICE
)

I/O control codes for mass storage devices.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL