{
    "mode": "man",
    "parameter": "mpath_persistent_reserve_out",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/mpath_persistent_reserve_out/3/json",
    "generated": "2026-05-30T06:08:10Z",
    "synopsis": "#include <mpathpersist.h>\nint  mpathpersistentreserveout(int  fd, int rqservact, struct prinresp *resp, int noisy,\nint verbose)",
    "sections": {
        "NAME": {
            "content": "mpathpersistentreserveout - send PROUT command to DM device\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "#include <mpathpersist.h>\n\nint  mpathpersistentreserveout(int  fd, int rqservact, struct prinresp *resp, int noisy,\nint verbose)\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The function in the mpathpersistentreserveout () sends PROUT command to the DM device  and\ngets the response.\n",
            "subsections": [
                {
                    "name": "Parameters:",
                    "content": "fd          The file descriptor of a multipath device. Input argument.\n\nrqservact  PROUT command service action. Input argument.\n\nrqscope    Persistent reservation scope. The value should be always LUSCOPE (0h).\n\nrqtype     Persistent  reservation  type.  The valid values of persistent reservation\ntypes are:\n\n5h (Write exclusive - registrants only).\n\n6h (Exclusive access - registrants only).\n\n7h (Write exclusive - All registrants).\n\n8h (Exclusive access - All registrants).\n\nparamp      PROUT command parameter data. The paramp is a struct which describes PROUT\nparameter  list. Caller should manage the memory allocation of this struc‐\nture.\n\nnoisy       Turn on debugging trace: Input argument. 0->Disable, 1->Enable.\n\nverbose     Set verbosity level. Input argument. value: 0 to 3. 0->Crits  and  Errors,\n1->Warnings, 2->Info, 3->Debug.\n"
                }
            ]
        },
        "RETURNS": {
            "content": "MPATHPRSUCCESS\nIf PR command successful else returns any one of the status mentioned below.\n\nMPATHPRSYNTAXERROR\nIf syntax error or invalid parameter.\n\nMPATHPRSENSENOTREADY\nIf command fails with [sk,asc,ascq: 0x2,*,*].\n\nMPATHPRSENSEMEDIUMERROR\nIf command fails with [sk,asc,ascq: 0x3,*,*].\n\nMPATHPRSENSEHARDWAREERROR\nIf command fails with [sk,asc,ascq: 0x4,*,*].\n\nMPATHPRSENSEINVALIDOP\nIf command fails with [sk,asc,ascq: 0x5,0x20,0x0].\n\nMPATHPRILLEGALREQ\nIf command fails with [sk,asc,ascq: 0x5,*,*].\n\nMPATHPRSENSEUNITATTENTION\nIf command fails with [sk,asc,ascq: 0x6,*,*].\n\nMPATHPRSENSEABORTEDCOMMAND\nIf command fails with [sk,asc,ascq: 0xb,*,*].\n\nMPATHPRNOSENSE\nIf command fails with [sk,asc,ascq: 0x0,*,*].\n\nMPATHPRSENSEMALFORMED\nIf command fails with SCSI command malformed.\n\nMPATHPRFILEERROR\nIf command fails while accessing file (device node) problems(e.g. not found).\n\nMPATHPRDMMPERROR\nIf Device Mapper related error.(e.g Error in getting dm info).\n\nMPATHPROTHER\nIf other error/warning has occurred(e.g transport or driver error).\n\nMPATHPRRESERVCONFLICT\nIf command fails with reservation conflict.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mpathpersist(8).\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "multipath-tools was developed by Christophe Varoqui <christophe.varoqui@opensvc.com> and oth‐\ners.\n\n\n\nLinux                                        2016-11-01              MPATHPERSISTENTRESERVEOUT(3)",
            "subsections": []
        }
    },
    "summary": "mpathpersistentreserveout - send PROUT command to DM device",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "mpathpersist",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mpathpersist/8/json"
        }
    ]
}