Lines Matching refs:xcall

21     xencall_handle *xcall = CONTAINER_OF(ah, *xcall, tc_ah);  in all_restrict_cb()  local
22 return xentoolcore__restrict_by_dup2_null(xcall->fd); in all_restrict_cb()
27 xencall_handle *xcall = malloc(sizeof(*xcall)); in xencall_open() local
30 if (!xcall) return NULL; in xencall_open()
32 xcall->fd = -1; in xencall_open()
33 xcall->tc_ah.restrict_callback = all_restrict_cb; in xencall_open()
34 xentoolcore__register_active_handle(&xcall->tc_ah); in xencall_open()
36 xcall->flags = open_flags; in xencall_open()
37 xcall->buffer_cache_nr = 0; in xencall_open()
39 xcall->buffer_total_allocations = 0; in xencall_open()
40 xcall->buffer_total_releases = 0; in xencall_open()
41 xcall->buffer_current_allocations = 0; in xencall_open()
42 xcall->buffer_maximum_allocations = 0; in xencall_open()
43 xcall->buffer_cache_hits = 0; in xencall_open()
44 xcall->buffer_cache_misses = 0; in xencall_open()
45 xcall->buffer_cache_toobig = 0; in xencall_open()
46 xcall->logger = logger; in xencall_open()
47 xcall->logger_tofree = NULL; in xencall_open()
49 if (!xcall->logger) { in xencall_open()
50 xcall->logger = xcall->logger_tofree = in xencall_open()
53 if (!xcall->logger) goto err; in xencall_open()
56 rc = osdep_xencall_open(xcall); in xencall_open()
59 return xcall; in xencall_open()
62 xentoolcore__deregister_active_handle(&xcall->tc_ah); in xencall_open()
63 osdep_xencall_close(xcall); in xencall_open()
64 xtl_logger_destroy(xcall->logger_tofree); in xencall_open()
65 free(xcall); in xencall_open()
69 int xencall_close(xencall_handle *xcall) in xencall_close() argument
73 if ( !xcall ) in xencall_close()
76 xentoolcore__deregister_active_handle(&xcall->tc_ah); in xencall_close()
77 rc = osdep_xencall_close(xcall); in xencall_close()
78 buffer_release_cache(xcall); in xencall_close()
79 xtl_logger_destroy(xcall->logger_tofree); in xencall_close()
80 free(xcall); in xencall_close()
84 int xencall0(xencall_handle *xcall, unsigned int op) in xencall0() argument
90 return osdep_hypercall(xcall, &call); in xencall0()
93 int xencall1(xencall_handle *xcall, unsigned int op, in xencall1() argument
101 return osdep_hypercall(xcall, &call); in xencall1()
104 int xencall2(xencall_handle *xcall, unsigned int op, in xencall2() argument
112 return osdep_hypercall(xcall, &call); in xencall2()
115 int xencall3(xencall_handle *xcall, unsigned int op, in xencall3() argument
123 return osdep_hypercall(xcall, &call); in xencall3()
126 int xencall4(xencall_handle *xcall, unsigned int op, in xencall4() argument
135 return osdep_hypercall(xcall, &call); in xencall4()
138 int xencall5(xencall_handle *xcall, unsigned int op, in xencall5() argument
147 return osdep_hypercall(xcall, &call); in xencall5()