转自: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);

最新文章

  1. 利用CSS、JavaScript及Ajax实现图片预加载的三大方法
  2. Java开发中经典的小实例-(打印输入重复的值)
  3. hdu 2891 中国剩余定理
  4. TYVJ1460 旅行
  5. org.apache.commons.lang3.StringUtils类中isBlank和isEmpty方法的区别
  6. TP-Shop安装步骤教程(Windows版)
  7. iphone手机浏览器文本框不触发输入中文的keyup事件
  8. (网页)JavaScript周末总结(一)
  9. mysql时间延时注入案例
  10. [蓝点ZigBee] Zstack 之按键驱动以及控制LED灯 ZigBee/CC2530 视频资料
  11. SpringCloud系列一:SpringCloud的简介和架构
  12. if else if else 语句
  13. 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
  14. Android--判断listview上下滑动的方法
  15. Maven 变量及常见插件配置详解
  16. JAVA和C#检测IP地址段是否交叉和获取地址段IP列表的方法
  17. OpenERP 7中 openerp-server.conf 的解释
  18. sencha touch carousel 扩展 CardList 可绑定data/store
  19. Python 断言 assert 的用法
  20. Review——JS的异步与同步

热门文章

  1. python中logging的常用方法
  2. web开发速查表(php,css,html5........)
  3. zookeeper3.4.6完全分布式安装
  4. oop &&GP 模板 ---> 特化和偏特化
  5. 【linux】亲测成功_CentOS7.2/rhel7.2 忘记root密码及重置root密码的方法?
  6. HDU 1445 Ride to School
  7. 【EasyNetQ】- 多态发布和订阅
  8. charles和Fiddler感觉哪个更好用
  9. ArcGis融合小多边形到相邻多边形
  10. SSH整合需要的jar包