device.h

来自「libaal-1.0.5.tar.gz reiser4progs编译时需要」· C头文件 代码 · 共 46 行

H
46
字号
/* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by   libaal/COPYING.      device.h -- device functions declaration. */#ifndef AAL_DEVICE_H#define AAL_DEVICE_H#include <aal/types.h>extern aal_device_t *aal_device_open(struct aal_device_ops *ops, 				     void *person,				     uint32_t blksize,				     int flags);#ifndef ENABLE_MINIMALextern errno_t aal_device_sync(aal_device_t *device);extern bool_t aal_device_readonly(aal_device_t *device);extern errno_t aal_device_reopen(aal_device_t *device,				 uint32_t blksize,				 int flags);extern errno_t aal_device_write(aal_device_t *device, 				void *buff, blk_t block,				count_t count);extern bool_t aal_device_equals(aal_device_t *device1, 				aal_device_t *device2);#endifextern errno_t aal_device_read(aal_device_t *device, 			       void *buff, blk_t block,			       count_t count);extern void aal_device_close(aal_device_t *device);extern errno_t aal_device_set_bs(aal_device_t *device, 				 uint32_t blksize);extern count_t aal_device_len(aal_device_t *device);extern uint32_t aal_device_get_bs(aal_device_t *device);#endif

⌨️ 快捷键说明

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