libnvme_write_reg32-libnvme32
Write a 32-bit controller register of a pcie controller
Usage
int libnvme_write_reg32 (struct libnvme_transport_handle *hdl , __u32 offset , __u32 value );
Arguments
hdl
|
Transport handle |
|---|---|
offset
|
Offset of the register in bytes |
value
|
Value to write |
Overview
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.