{
    "content": [
        {
            "type": "text",
            "text": "# mpath_persistent_reserve_out(3) (man)\n\n**Summary:** mpathpersistentreserveout - send PROUT command to DM device\n\n**Synopsis:** #include <mpathpersist.h>\nint  mpathpersistentreserveout(int  fd, int rqservact, struct prinresp *resp, int noisy,\nint verbose)\n\n## See Also\n\n- mpathpersist(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (5 lines)\n- **DESCRIPTION** (3 lines) — 1 subsections\n  - Parameters: (26 lines)\n- **RETURNS** (45 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHORS** (6 lines)\n\n## Full Content\n\n### NAME\n\nmpathpersistentreserveout - send PROUT command to DM device\n\n### SYNOPSIS\n\n#include <mpathpersist.h>\n\nint  mpathpersistentreserveout(int  fd, int rqservact, struct prinresp *resp, int noisy,\nint verbose)\n\n### DESCRIPTION\n\nThe function in the mpathpersistentreserveout () sends PROUT command to the DM device  and\ngets the response.\n\n#### Parameters:\n\nfd          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\n### RETURNS\n\nMPATHPRSUCCESS\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\n### SEE ALSO\n\nmpathpersist(8).\n\n### AUTHORS\n\nmultipath-tools was developed by Christophe Varoqui <christophe.varoqui@opensvc.com> and oth‐\ners.\n\n\n\nLinux                                        2016-11-01              MPATHPERSISTENTRESERVEOUT(3)\n\n"
        }
    ],
    "structuredContent": {
        "command": "mpath_persistent_reserve_out",
        "section": "3",
        "mode": "man",
        "summary": "mpathpersistentreserveout - send PROUT command to DM device",
        "synopsis": "#include <mpathpersist.h>\nint  mpathpersistentreserveout(int  fd, int rqservact, struct prinresp *resp, int noisy,\nint verbose)",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "mpathpersist",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/mpathpersist/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": [
                    {
                        "name": "Parameters:",
                        "lines": 26
                    }
                ]
            },
            {
                "name": "RETURNS",
                "lines": 45,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}