1
/* -*- mode: c; c-basic-offset: 8; -*-
2
* vim: noexpandtab sw=8 ts=8 sts=0:
6
* Bitmap frobbing routines for the OCFS2 userspace library.
8
* Copyright (C) 2004 Oracle. All rights reserved.
10
* This program is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU General Public
12
* License, version 2, as published by the Free Software Foundation.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
19
* You should have received a copy of the GNU General Public
20
* License along with this program; if not, write to the
21
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22
* Boston, MA 021110-1307, USA.
24
* Authors: Joel Becker
26
* This code is a port of e2fsprogs/lib/ext2fs/bitops.h
27
* Copyright (C) 1993, 1994, 1995, 1996 Theodore Ts'o.
33
extern int ocfs2_set_bit(int nr,void * addr);
34
extern int ocfs2_clear_bit(int nr, void * addr);
35
extern int ocfs2_test_bit(int nr, const void * addr);
37
extern int ocfs2_find_first_bit_set(void *addr, int size);
38
extern int ocfs2_find_first_bit_clear(void *addr, int size);
39
extern int ocfs2_find_next_bit_set(void *addr, int size, int offset);
40
extern int ocfs2_find_next_bit_clear(void *addr, int size, int offset);