?? transfer.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_TRANSFER_H__#define __COLINUX_KERNEL_TRANSFER_H__/* * Routines to copy data between coLinux space and host space. */#include "manager.h"struct co_monitor;typedef enum { /* From Host OS to coLinux */ CO_MONITOR_TRANSFER_FROM_HOST, /* From coLinux to Host OS */ CO_MONITOR_TRANSFER_FROM_LINUX,} co_monitor_transfer_dir_t;/* * This is lambda function that does the actual copying. In most * cases it will copy a maximum of PAGE_SIZE bytes per call, because * coLinux memory is fragmented. * * host_data - User information regarding host address * para - coLinux-host mapped addrsss * size - Number of bytes to copy * dir - copy direction */typedef co_rc_t (*co_monitor_transfer_func_t)( struct co_monitor *cmon, void *host_data, void *linuxvm, unsigned long size, co_monitor_transfer_dir_t dir );extern co_rc_t co_monitor_host_linuxvm_transfer( struct co_monitor *cmon, void *host_data, co_monitor_transfer_func_t host_func, vm_ptr_t para, unsigned long size, co_monitor_transfer_dir_t dir );/* * memcpy-like transfer implementation: */extern co_rc_t co_monitor_host_to_linuxvm(struct co_monitor *cmon, void *from, vm_ptr_t to, unsigned long size); extern co_rc_t co_monitor_linuxvm_to_host(struct co_monitor *cmon, vm_ptr_t from, void *to, unsigned long size); #endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -