📄 trv_copy.c
字号:
/*********************************************************************** * * (C) Copyright 2000 * Jean-Jacques Germond, Fr閐閞ic Soulier, Christian Batt; Alcatel * C/O jjg@sxb.bsf.alcatel.fr * * All rights reserved. * * This code is free software; you can redistribute it and/or * modify it under the terms of the GNU *Library* General Public License * as published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This code 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 * *Library* General Public License for more details. * * You should have received a copy of the GNU *Library* General Public * License along with this program (see file COPYING.LIB); if not, * write to the Free Software Foundation, Inc., 675 Mass Ave, * Cambridge, MA 02139, USA. * ***********************************************************************//* The "trivial module" copy from/to user spece routines *//* See AR pg:21 */#define __NO_VERSION__ #include "trv_def.h"#include "asm/uaccess.h" /* Kernel accesses to/from user space *//* copy_from_user & copy_to_user are inlined in .../asm/uaccess.h. * but I believe that error are not proprly handled in 2.2.5 * for the arm case at least. So I preffer to encapsulate * The code in a special file to begin with. * (errors are still not well notified yet). */ inttrv_copy_from_user(void *to, const void *from, unsigned long n){ copy_from_user(to,from,n); return 0; /* Ok return : No error notification yet */} inttrv_copy_to_user(void *to, const void *from, unsigned long n){ copy_to_user(to,from,n); return 0; /* Ok return : No error notification yet */}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -