/* -*- mode: c; c-basic-offset: 8; -*-
 * vim: noexpandtab sw=8 ts=8 sts=0:
 *
 * slotmap.h
 *
 * description here
 *
 * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 021110-1307, USA.
 */


#ifndef SLOTMAP_H
#define SLOTMAP_H

int ocfs2_init_slot_info(struct ocfs2_super *osb);
void ocfs2_free_slot_info(struct ocfs2_super *osb);

int ocfs2_find_slot(struct ocfs2_super *osb);
void ocfs2_put_slot(struct ocfs2_super *osb);

int ocfs2_refresh_slot_info(struct ocfs2_super *osb);

int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num,
				  unsigned int *node_num);

int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);

#endif
auser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/xen/interface/hvm/params.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/xen/interface/hvm/params.h?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/xen/interface/hvm/params.h?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/xen/interface/hvm/params.h?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/xen/interface/hvm/params.h'>
<input type='hidden' name='id' value='8d0d43e342083c9d2b15542e9a99727c0ef43a7f'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/xen?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>xen</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/xen/interface?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>interface</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/xen/interface/hvm?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>hvm</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/xen/interface/hvm/params.h?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f'>params.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/xen/interface/hvm/params.h?id=8d0d43e342083c9d2b15542e9a99727c0ef43a7f&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>