Scroll to navigation

libnvme_write_reg64(2) libnvme API manual libnvme_write_reg64(2)

NAME

libnvme_write_reg64 - Write a 64-bit controller register of a PCIe controller

SYNOPSIS

int libnvme_write_reg64 (struct libnvme_transport_handle *hdl , __u32 offset , __u64 value , bool mmio32 );

ARGUMENTS

Transport handle
Offset of the register in bytes
Value to write
Write the register as two 32-bit values, low half first. Some devices do not support 64-bit MMIO.

DESCRIPTION

offset must be a multiple of 8. This should only be sent to controller handles, not to namespaces.

RETURN

0 on success or a negative error code otherwise. -ENOTSUP indicates that the transport has no memory-mapped registers.

libnvme_write_reg64 October 2026