Logo Search packages:      
Sourcecode: linux version File versions  Download package



#include "xen-ops.h"

/* Multicalls */
struct multicall_space
      struct multicall_entry *mc;
      void *args;

/* Allocate room for a multicall and its args */
struct multicall_space __xen_mc_entry(size_t args);

DECLARE_PER_CPU(unsigned long, xen_mc_irq_flags);

/* Call to start a batch of multiple __xen_mc_entry()s.  Must be
   paired with xen_mc_issue() */
static inline void xen_mc_batch(void)
      /* need to disable interrupts until this entry is complete */

static inline struct multicall_space xen_mc_entry(size_t args)
      return __xen_mc_entry(args);

/* Flush all pending multicalls */
void xen_mc_flush(void);

/* Issue a multicall if we're not in a lazy mode */
static inline void xen_mc_issue(unsigned mode)
      if ((paravirt_get_lazy_mode() & mode) == 0)

      /* restore flags saved in xen_mc_batch */

/* Set up a callback to be called when the current batch is flushed */
void xen_mc_callback(void (*fn)(void *), void *data);

#endif /* _XEN_MULTICALLS_H */

Generated by  Doxygen 1.6.0   Back to index