DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

typedef struct _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS {
  ULONG                 Flags;
  ULONG                 Reserved;
  ULONGLONG             TokenOffset;
  STORAGE_OFFLOAD_TOKEN Token;
} DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS, *PDEVICE_DSM_OFFLOAD_WRITE_PARAMETERS;
View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS {
  DWORD                 Flags;
  DWORD                 Reserved;
  DWORDLONG             TokenOffset;
  STORAGE_OFFLOAD_TOKEN Token;
} DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS, *PDEVICE_DSM_OFFLOAD_WRITE_PARAMETERS;
View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddstor-_device_dsm_offload_write_parameters)

_DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS structure

Description

The DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS structure specifies the parameters for an offload write action related to the data-set attributes for a device.

Members

Flags

Not used.

Reserved

Reserved.

TokenOffset

The offset, in bytes, within the data block specified by Token to begin writing from.

Token

The unique identifier of the data block to write from.

Remarks

This structure is used in an offload write action for an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request. The Action member of the DEVICE_DSM_INPUT structure is set to DeviceDsmAction_OffloadWrite.

The ParameterBlockOffset and ParameterBlockLength members of DEVICE_DSM_INPUT are set to the location and length of the DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS structure in the system buffer of the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.

The DataSetRangesOffset and DataSetRangesLength members of DEVICE_DSM_INPUT specify the DEVICE_DSM_RANGE structures for the extents of the offload write.

See DEVICE_DSM_ACTION Descriptions for more details about this action.

See also

DEVICE_DSM_ACTION Descriptions

DEVICE_DSM_INPUT

DEVICE_DSM_OFFLOAD_READ_PARAMETERS

DEVICE_DSM_RANGE

IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES


Win32 API reference (ns-winioctl-device_dsm_offload_write_parameters)

DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS structure

Description

Specifies parameters for the offload write operation. An offload write operation is initiated by specifying DeviceDsmAction_OffloadWrite in the Action member of the DEVICE_MANAGE_DATA_SET_ATTRIBUTES structure passed in a IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES control code.

Members

Flags

Set to 0.

Reserved

Reserved.

TokenOffset

The starting offset to copy from the range bound to the token

Token

STORAGE_OFFLOAD_TOKEN structure containing the token returned from the offload read operation.

See also

DEVICE_MANAGE_DATA_SET_ATTRIBUTES

Device Management Structures

IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES

STORAGE_OFFLOAD_TOKEN