control.h

来自「实现linux平台下零拷贝技术的软件包。」· C头文件 代码 · 共 39 行

H
39
字号
/* * 	control.h	 *  * 2006 Copyright (c) Evgeniy Polyakov <johnpol@2ka.mipt.ru> * All rights reserved. *  * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef __INT_H#define __INT_H#define PAGE_SIZE	4096struct zc_control{	int		cpu;	int		fd;	unsigned int	offset;	struct zc_data	e[ZC_MAX_ENTRY_NUM];};struct zc_control *zc_ctl_init(int nr_cpus, char *ctl_file);int zc_prepare(struct zc_control *ctl, unsigned int entry_num);#endif /* __INT_H */

⌨️ 快捷键说明

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