xenstore.c (453130d9bfc1c6d68b366dfcb041689d69f81295) | xenstore.c (41716b8d5151d2bec72b6796ed58b6206cdb4779) |
---|---|
1/****************************************************************************** 2 * xenstore.c 3 * 4 * Low-level kernel interface to the XenStore. 5 * 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2009,2010 Spectra Logic Corporation 8 * --- 1685 unchanged lines hidden (view full) --- 1694 mtx_unlock(&xs.watch_events_lock); 1695 1696 /* Flush any currently-executing callback, unless we are it. :-) */ 1697 if (curproc->p_pid != xs.xenwatch_pid) { 1698 sx_xlock(&xs.xenwatch_mutex); 1699 sx_xunlock(&xs.xenwatch_mutex); 1700 } 1701} | 1/****************************************************************************** 2 * xenstore.c 3 * 4 * Low-level kernel interface to the XenStore. 5 * 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2009,2010 Spectra Logic Corporation 8 * --- 1685 unchanged lines hidden (view full) --- 1694 mtx_unlock(&xs.watch_events_lock); 1695 1696 /* Flush any currently-executing callback, unless we are it. :-) */ 1697 if (curproc->p_pid != xs.xenwatch_pid) { 1698 sx_xlock(&xs.xenwatch_mutex); 1699 sx_xunlock(&xs.xenwatch_mutex); 1700 } 1701} |
1702 1703void 1704xs_lock(void) 1705{ 1706 1707 sx_xlock(&xs.request_mutex); 1708 return; 1709} 1710 1711void 1712xs_unlock(void) 1713{ 1714 1715 sx_xunlock(&xs.request_mutex); 1716 return; 1717} 1718 |
|