📄 alloc40.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -