Lines Matching refs:req_id

345     rsp->req_id = id;  in xs_error()
352 static void xs_ok(XenXenstoreState *s, unsigned int type, unsigned int req_id, in xs_ok() argument
359 rsp->req_id = req_id; in xs_ok()
501 static void xs_read(XenXenstoreState *s, unsigned int req_id, in xs_read() argument
511 xs_error(s, req_id, tx_id, EINVAL); in xs_read()
518 xs_error(s, req_id, tx_id, err); in xs_read()
523 rsp->req_id = req_id; in xs_read()
529 xs_error(s, req_id, tx_id, E2BIG); in xs_read()
541 static void xs_write(XenXenstoreState *s, unsigned int req_id, in xs_write() argument
550 xs_error(s, req_id, tx_id, EINVAL); in xs_write()
561 xs_error(s, req_id, tx_id, EINVAL); in xs_write()
571 xs_error(s, req_id, tx_id, err); in xs_write()
575 xs_ok(s, XS_WRITE, req_id, tx_id); in xs_write()
578 static void xs_mkdir(XenXenstoreState *s, unsigned int req_id, in xs_mkdir() argument
587 xs_error(s, req_id, tx_id, EINVAL); in xs_mkdir()
600 xs_error(s, req_id, tx_id, err); in xs_mkdir()
604 xs_ok(s, XS_MKDIR, req_id, tx_id); in xs_mkdir()
624 xs_error(s, rsp->req_id, rsp->tx_id, E2BIG); in xs_append_strings()
649 static void xs_directory(XenXenstoreState *s, unsigned int req_id, in xs_directory() argument
659 xs_error(s, req_id, tx_id, EINVAL); in xs_directory()
668 xs_error(s, req_id, tx_id, err); in xs_directory()
673 rsp->req_id = req_id; in xs_directory()
682 static void xs_directory_part(XenXenstoreState *s, unsigned int req_id, in xs_directory_part() argument
695 xs_error(s, req_id, tx_id, EINVAL); in xs_directory_part()
704 xs_error(s, req_id, tx_id, EINVAL); in xs_directory_part()
715 xs_error(s, req_id, tx_id, EINVAL); in xs_directory_part()
721 xs_error(s, req_id, tx_id, EINVAL); in xs_directory_part()
726 xs_error(s, req_id, tx_id, EINVAL); in xs_directory_part()
733 xs_error(s, req_id, tx_id, err); in xs_directory_part()
738 rsp->req_id = req_id; in xs_directory_part()
747 static void xs_transaction_start(XenXenstoreState *s, unsigned int req_id, in xs_transaction_start() argument
756 xs_error(s, req_id, tx_id, EINVAL); in xs_transaction_start()
761 rsp->req_id = req_id; in xs_transaction_start()
767 xs_error(s, req_id, tx_id, err); in xs_transaction_start()
778 static void xs_transaction_end(XenXenstoreState *s, unsigned int req_id, in xs_transaction_end() argument
786 xs_error(s, req_id, tx_id, EINVAL); in xs_transaction_end()
798 xs_error(s, req_id, tx_id, EINVAL); in xs_transaction_end()
805 xs_error(s, req_id, tx_id, err); in xs_transaction_end()
809 xs_ok(s, XS_TRANSACTION_END, req_id, tx_id); in xs_transaction_end()
812 static void xs_rm(XenXenstoreState *s, unsigned int req_id, in xs_rm() argument
819 xs_error(s, req_id, tx_id, EINVAL); in xs_rm()
826 xs_error(s, req_id, tx_id, err); in xs_rm()
830 xs_ok(s, XS_RM, req_id, tx_id); in xs_rm()
833 static void xs_get_perms(XenXenstoreState *s, unsigned int req_id, in xs_get_perms() argument
843 xs_error(s, req_id, tx_id, EINVAL); in xs_get_perms()
850 xs_error(s, req_id, tx_id, err); in xs_get_perms()
855 rsp->req_id = req_id; in xs_get_perms()
864 static void xs_set_perms(XenXenstoreState *s, unsigned int req_id, in xs_set_perms() argument
874 xs_error(s, req_id, tx_id, EINVAL); in xs_set_perms()
883 xs_error(s, req_id, tx_id, EINVAL); in xs_set_perms()
907 xs_error(s, req_id, tx_id, err); in xs_set_perms()
911 xs_ok(s, XS_SET_PERMS, req_id, tx_id); in xs_set_perms()
914 static void xs_watch(XenXenstoreState *s, unsigned int req_id, in xs_watch() argument
922 xs_error(s, req_id, tx_id, EINVAL); in xs_watch()
931 xs_error(s, req_id, tx_id, EINVAL); in xs_watch()
942 xs_error(s, req_id, tx_id, EINVAL); in xs_watch()
957 xs_error(s, req_id, tx_id, err); in xs_watch()
961 xs_ok(s, XS_WATCH, req_id, tx_id); in xs_watch()
964 static void xs_unwatch(XenXenstoreState *s, unsigned int req_id, in xs_unwatch() argument
972 xs_error(s, req_id, tx_id, EINVAL); in xs_unwatch()
981 xs_error(s, req_id, tx_id, EINVAL); in xs_unwatch()
992 xs_error(s, req_id, tx_id, EINVAL); in xs_unwatch()
1000 xs_error(s, req_id, tx_id, err); in xs_unwatch()
1004 xs_ok(s, XS_UNWATCH, req_id, tx_id); in xs_unwatch()
1007 static void xs_reset_watches(XenXenstoreState *s, unsigned int req_id, in xs_reset_watches() argument
1012 xs_error(s, req_id, tx_id, EINVAL); in xs_reset_watches()
1019 xs_ok(s, XS_RESET_WATCHES, req_id, tx_id); in xs_reset_watches()
1022 static void xs_priv(XenXenstoreState *s, unsigned int req_id, in xs_priv() argument
1026 xs_error(s, req_id, tx_id, EACCES); in xs_priv()
1029 static void xs_unimpl(XenXenstoreState *s, unsigned int req_id, in xs_unimpl() argument
1033 xs_error(s, req_id, tx_id, ENOSYS); in xs_unimpl()
1036 typedef void (*xs_impl)(XenXenstoreState *s, unsigned int req_id,
1084 handler(s, req->req_id, req->tx_id, (uint8_t *)&req[1], req->len); in process_req()
1285 rsp->req_id = 0; in deliver_watch()