put_user & get_user
来源:互联网 发布:短篇小说 知乎 编辑:程序博客网 时间:2024/06/05 02:45
1. put_user
put_user -- Write a simple value into user space.
put_user
( x, ptr);
- x
Value to copy to user space.
- ptr
Destination address, in user space.
User context only. This function may sleep.
This macro copies a single simple value from kernel space to user space.It supports simple types like char and int, but not larger data types like structures or arrays.
ptr must have pointer-to-simple-variable type, and x must be assignable to the result of dereferencing ptr.
Returns zero on success, or -EFAULT on error.
2. get_user
get_user -- Get a simple variable from user space.
get_user
( x, ptr);
- x
Variable to store result.
- ptr
Source address, in user space.
User context only. This function may sleep.
Description
This macro copies a single simple variable from user space to kernel space. It supports simple types like char and int, but not larger data types like structures or arrays.
ptr must have pointer-to-simple-variable type, and the result of dereferencing ptr must be assignable to x without a cast.
Returns zero on success, or -EFAULT on error. On error, the variable x is set to zero.
- put_user & get_user
- put_user & get_user
- put_user 和 get_user
- put_user和get_user
- get_user;put_user;copy_to_user;copy_from_user
- put_user和get_user的使用
- get_user() ,put_user(),copy_to_u…
- get_user,put_user与copy_from_user,copy_to_user
- copy_to_user,copy_from_user,get_user,put_user函数用法比较
- copy_to_user,copy_from_user,get_user,put_user函数比较
- copy_to_user,copy_from_user,get_user,put_user函数比较
- copy_to_user,copy_from_user,get_user,put_user函数比较
- copy_to_user,copy_from_user,get_user,put_user函数比较
- copy_to_user,copy_from_user,get_user和put_user函数实现
- copy_to_user,copy_from_user,get_user,put_user函数比较
- copy_to_user,copy_from_user,get_user,put_user函数比较
- linux内核中的get_user和put_user
- linux内核中的get_user和put_user
- linux下无法解析或打开软件包的列表或是状态文件 解决方案
- WPF中对Excel文件的导入导出操作详解
- linux inotify研究5
- 网页编程基础第五章知识点总结——框架 表单
- tgcopter v3.x开发记录---stm32f4与arduino通过SPI的DMA通信
- put_user & get_user
- 金融总结十 上交所和深交所的集合竞价
- HDU 2795
- ZigBee属性表-中文解释
- PC ubuntu添加yaffs2支持+nandflash模拟
- 选择排序
- 三种客户端访问wcf服务端的方法 C#
- Min and Max Timing Paths--时序路径
- 一道月薪3W的java面试题