📄 dskalloc.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * dskalloc.h (file) * * File management * Disk allocation management */#ifndef _FM_DSKALLOC_H_#define _FM_DSKALLOC_H_#include "fsinfo.h"/* === Fragment table-related =========================================== *//* * Elements of the fragment table. * One created by modifying DfFragment for internal processing. */typedef struct Fragment { W size; DskAdr locate;} Fragment;IMPORT ER fmpAllocateFragment( DskAdr *dadr, W size, OFCB *ofcb );IMPORT ER fmpResizeFragment( UW lblk, W use, W size, OFCB *ofcb );IMPORT ER fmpMergeFragment( UW lblk, VP madr, W start, W end, OFCB *ofcb );/* === Use block bit map-related ============================================= *//* * Logical block address * In order to support the contiguous blocks of 256 block or more. * One created by modifying LogBlk. */typedef struct { UW cnt; /* Contiguous block count */ UW adr; /* Logical block address */} LLogBlk;IMPORT ER fmpAllocateBlock( LLogBlk *alloc, W size, W units, UW lblk, OFCB *ofcb );IMPORT ER fmpAllocateOneBlock( UW lblk, OFCB *ofcb, FsInfo *fsinfo );IMPORT ER fmpFreeBlock( LLogBlk free, OFCB *ofcb );IMPORT ER fmpFreeOneBlock( UW free, OFCB *ofcb, FsInfo *fsinfo );IMPORT ER fmpFreeDataBlk( LogBlk lblk, W top, W end, BOOL topf, OFCB *ofcb );#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -