alloc40.h

来自「reiser4progs ReiserFS V4 ReiserFs官方已经关」· C头文件 代码 · 共 43 行

H
43
字号
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by   reiser4progs/COPYING.      alloc40.h -- default block allocator plugin for reiser4. */#ifndef ALLOC40_H#define ALLOC40_H#ifndef ENABLE_MINIMAL#include <aal/libaal.h>#include <reiser4/bitmap.h>#include <reiser4/plugin.h>#define CRC_SIZE (4)typedef struct alloc40 {	reiser4_alloc_plug_t *plug;		uint32_t state;	uint32_t blksize;		aal_device_t *device;	reiser4_bitmap_t *bitmap;	char *crc;	void *data;} alloc40_t;#define PLUG_ENT(p) ((alloc40_t *)p)extern reiser4_alloc_plug_t alloc40_plug;extern int alloc40_occupied(reiser4_alloc_ent_t *entity, 			    uint64_t start, uint64_t count);extern errno_t alloc40_layout(reiser4_alloc_ent_t *entity,			      region_func_t region_func,			      void *data);#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?