Revision 208c9d1b qmp-commands.hx

b/qmp-commands.hx
873 873
        .args_type  = "fdname:s",
874 874
        .params     = "getfd name",
875 875
        .help       = "receive a file descriptor via SCM rights and assign it a name",
876
        .user_print = monitor_user_noop,
877
        .mhandler.cmd_new = do_getfd,
876
        .mhandler.cmd_new = qmp_marshal_input_getfd,
878 877
    },
879 878

  
880 879
SQMP
......
892 891
-> { "execute": "getfd", "arguments": { "fdname": "fd1" } }
893 892
<- { "return": {} }
894 893

  
894
Notes:
895

  
896
(1) If the name specified by the "fdname" argument already exists,
897
    the file descriptor assigned to it will be closed and replaced
898
    by the received file descriptor.
899
(2) The 'closefd' command can be used to explicitly close the file
900
    descriptor when it is no longer needed.
901

  
895 902
EQMP
896 903

  
897 904
    {
......
899 906
        .args_type  = "fdname:s",
900 907
        .params     = "closefd name",
901 908
        .help       = "close a file descriptor previously passed via SCM rights",
902
        .user_print = monitor_user_noop,
903
        .mhandler.cmd_new = do_closefd,
909
        .mhandler.cmd_new = qmp_marshal_input_closefd,
904 910
    },
905 911

  
906 912
SQMP

Also available in: Unified diff