/usr/include/reiser4/alloc.h is in libreiser4-dev 1.0.9-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | /* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING.
alloc.h -- reiser4 block allocator functions. */
#ifndef REISER4_ALLOC_H
#define REISER4_ALLOC_H
#ifndef ENABLE_MINIMAL
#include <reiser4/types.h>
extern reiser4_alloc_t *reiser4_alloc_open(reiser4_fs_t *fs,
count_t blocks);
extern reiser4_alloc_t *reiser4_alloc_create(reiser4_fs_t *fs,
count_t blocks);
extern errno_t reiser4_alloc_extract(reiser4_alloc_t *alloc,
reiser4_bitmap_t *bitmap);
extern errno_t reiser4_alloc_assign(reiser4_alloc_t *alloc,
reiser4_bitmap_t *bitmap);
extern errno_t reiser4_alloc_sync(reiser4_alloc_t *alloc);
extern errno_t reiser4_alloc_occupy(reiser4_alloc_t *alloc,
blk_t start, count_t count);
extern errno_t reiser4_alloc_release(reiser4_alloc_t *alloc,
blk_t start, count_t count);
extern count_t reiser4_alloc_allocate(reiser4_alloc_t *alloc,
blk_t *start, count_t count);
extern void reiser4_alloc_close(reiser4_alloc_t *alloc);
extern errno_t reiser4_alloc_valid(reiser4_alloc_t *alloc);
extern bool_t reiser4_alloc_isdirty(reiser4_alloc_t *alloc);
extern void reiser4_alloc_mkdirty(reiser4_alloc_t *alloc);
extern void reiser4_alloc_mkclean(reiser4_alloc_t *alloc);
extern count_t reiser4_alloc_used(reiser4_alloc_t *alloc);
extern count_t reiser4_alloc_free(reiser4_alloc_t *alloc);
extern bool_t reiser4_alloc_occupied(reiser4_alloc_t *alloc,
blk_t start, count_t count);
extern bool_t reiser4_alloc_available(reiser4_alloc_t *alloc,
blk_t start, count_t count);
extern errno_t reiser4_alloc_layout(reiser4_alloc_t *alloc,
region_func_t region_func,
void *data);
extern errno_t reiser4_alloc_region(reiser4_alloc_t *alloc, blk_t blk,
region_func_t func, void *data);
#endif
#endif
|