libnvme\_privsep\_spawn(9) libnvme API manual libnvme\_privsep\_spawn(9)

# [NAME](#NAME)

libnvme\_privsep\_spawn - Start the privilege separation helper

# [SYNOPSIS](#SYNOPSIS)

**int libnvme\_privsep\_spawn** **(const char \*helper ,** **struct libnvme\_privsep \*\*psp );**

# [ARGUMENTS](#ARGUMENTS)

[helper](#helper)

Path of the helper binary or NULL for the installed helper

[psp](#psp)

On success, the helper channel

# [DESCRIPTION](#DESCRIPTION)

Starts the helper as a child process and checks that it speaks the same protocol version. The helper inherits the credentials of the caller, so call this function before dropping privileges.

# [RETURN](#RETURN)

0 on success or a negative error code otherwise.

libnvme\_privsep\_spawn October 2026

---

Document: libnvme_privsep_spawn-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
