Line | |
---|
1 | #ifndef __XEN_HYPERCALL_H__ |
---|
2 | #define __XEN_HYPERCALL_H__ |
---|
3 | |
---|
4 | #include <asm/hypercall.h> |
---|
5 | |
---|
6 | static inline int |
---|
7 | HYPERVISOR_multicall_check( |
---|
8 | multicall_entry_t *call_list, int nr_calls, |
---|
9 | const unsigned long *rc_list) |
---|
10 | { |
---|
11 | int rc = HYPERVISOR_multicall(call_list, nr_calls); |
---|
12 | |
---|
13 | if (unlikely(rc < 0)) |
---|
14 | return rc; |
---|
15 | BUG_ON(rc); |
---|
16 | |
---|
17 | for ( ; nr_calls > 0; --nr_calls, ++call_list) |
---|
18 | if (unlikely(call_list->result != (rc_list ? *rc_list++ : 0))) |
---|
19 | return nr_calls; |
---|
20 | |
---|
21 | return 0; |
---|
22 | } |
---|
23 | |
---|
24 | #endif /* __XEN_HYPERCALL_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.