source: trunk/packages/xen-3.1/xen-3.1/linux-2.6-xen-sparse/include/xen/hypercall.h @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 494 bytes
Line 
1#ifndef __XEN_HYPERCALL_H__
2#define __XEN_HYPERCALL_H__
3
4#include <asm/hypercall.h>
5
6static inline int
7HYPERVISOR_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.