⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fileblock.h

📁 一个Windows下的Linux专用虚拟机
💻 H
字号:
/* * This source code is a part of coLinux source package. * * Dan Aloni <da-x@colinux.org>, 2003 (c) * * The code is licensed under the GPL. See the COPYING file at * the root directory. */#ifndef __COLINUX_KERNEL_FILE_BLOCK_H__#define __COLINUX_KERNEL_FILE_BLOCK_H__#include "block.h"typedef enum {	CO_MONITOR_FILE_BLOCK_CLOSED,	CO_MONITOR_FILE_BLOCK_OPENED,} co_monitor_file_block_state_t;struct co_monitor_file_block_dev;typedef struct co_monitor_file_block_dev co_monitor_file_block_dev_t;struct co_monitor;typedef struct {	co_rc_t (*get_size)(co_monitor_file_block_dev_t *fdev, unsigned long long *size);	co_rc_t (*open)(struct co_monitor *cmon, co_monitor_file_block_dev_t *fdev);	co_rc_t (*read)(struct co_monitor *cmon, co_block_dev_t *dev, 			co_monitor_file_block_dev_t *fdev, co_block_request_t *request);	co_rc_t (*write)(struct co_monitor *cmon, co_block_dev_t *dev, 			 co_monitor_file_block_dev_t *fdev, co_block_request_t *request);	co_rc_t (*close)(co_monitor_file_block_dev_t *fdev);} co_monitor_file_block_operations_t;struct co_monitor_file_block_dev {	co_block_dev_t dev; /* Must stay as the first field */	struct co_monitor *monitor;	co_monitor_file_block_state_t state;	co_pathname_t pathname;	co_monitor_file_block_operations_t *op;	struct co_os_file_block_sysdep *sysdep;};co_rc_t co_monitor_file_block_init(co_monitor_file_block_dev_t *dev, co_pathname_t *pathname);void co_monitor_file_block_shutdown(co_monitor_file_block_dev_t *dev);extern co_monitor_file_block_operations_t co_os_file_block_default_operations;#endif

⌨️ 快捷键说明

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