aio.h

来自「底层驱动开发」· C头文件 代码 · 共 29 行

H
29
字号
/* * Copyright (C) 2004 Jeff Dike (jdike@karaya.com) * Licensed under the GPL */#ifndef AIO_H__#define AIO_H__enum aio_type { AIO_READ, AIO_WRITE, AIO_MMAP };struct aio_thread_reply {	void *data;	int err;};struct aio_context {	int reply_fd;	struct aio_context *next;};#define INIT_AIO_CONTEXT { .reply_fd	= -1, \			   .next	= NULL }extern int submit_aio(enum aio_type type, int fd, char *buf, int len,		      unsigned long long offset, int reply_fd,                      struct aio_context *aio);#endif

⌨️ 快捷键说明

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