kernel_read【转】
2024-10-21 06:29:49
转自:http://blog.csdn.net/echoisland/article/details/7101097http://lxr.oss.org.cn/source/fs/exec.c
798 int kernel_read(struct file *file, loff_t offset,
799 char *addr, unsigned long count)
800 {
801 mm_segment_t old_fs;
802 loff_t pos = offset;
803 int result;
804
805 old_fs = get_fs();
806 set_fs(get_ds());
807 /* The cast to a user pointer is valid due to the set_fs() */
808 result = vfs_read(file, (void __user *)addr, count, &pos);
809 set_fs(old_fs);
810 return result;
811 }
812
813 EXPORT_SYMBOL(kernel_read);
最新文章
- 利用CSS、JavaScript及Ajax实现图片预加载的三大方法
- Java开发中经典的小实例-(打印输入重复的值)
- hdu 2891 中国剩余定理
- TYVJ1460 旅行
- org.apache.commons.lang3.StringUtils类中isBlank和isEmpty方法的区别
- TP-Shop安装步骤教程(Windows版)
- iphone手机浏览器文本框不触发输入中文的keyup事件
- (网页)JavaScript周末总结(一)
- mysql时间延时注入案例
- [蓝点ZigBee] Zstack 之按键驱动以及控制LED灯 ZigBee/CC2530 视频资料
- SpringCloud系列一:SpringCloud的简介和架构
- if else if else 语句
- webpack4打包报错:WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults fo
- Android--判断listview上下滑动的方法
- Maven 变量及常见插件配置详解
- JAVA和C#检测IP地址段是否交叉和获取地址段IP列表的方法
- OpenERP 7中 openerp-server.conf 的解释
- sencha touch carousel 扩展 CardList 可绑定data/store
- Python 断言 assert 的用法
- Review——JS的异步与同步
热门文章
- python中logging的常用方法
- web开发速查表(php,css,html5........)
- zookeeper3.4.6完全分布式安装
- oop &;&;GP 模板 --->; 特化和偏特化
- 【linux】亲测成功_CentOS7.2/rhel7.2 忘记root密码及重置root密码的方法?
- HDU 1445 Ride to School
- 【EasyNetQ】- 多态发布和订阅
- charles和Fiddler感觉哪个更好用
- ArcGis融合小多边形到相邻多边形
- SSH整合需要的jar包