arm上的current
来源:互联网 发布:linux如何更改ftp目录 编辑:程序博客网 时间:2024/05/21 10:20
arch/arm/include/asm/current.h
static inline struct task_struct *get_current(void)
{
return current_thread_info()->task;
}
#define current (get_current())
arch/arm/include/asm/thread_info.h
static inline struct thread_info *current_thread_info(void) __attribute_const__;
static inline struct thread_info *current_thread_info(void)
{
register unsigned long sp asm ("sp");
return (struct thread_info *)(sp & ~(THREAD_SIZE - 1));
}
struct thread_info 放在当前线程栈底
thread_info可索引到struct task_struct
static inline struct task_struct *get_current(void)
{
return current_thread_info()->task;
}
#define current (get_current())
arch/arm/include/asm/thread_info.h
static inline struct thread_info *current_thread_info(void) __attribute_const__;
static inline struct thread_info *current_thread_info(void)
{
register unsigned long sp asm ("sp");
return (struct thread_info *)(sp & ~(THREAD_SIZE - 1));
}
struct thread_info 放在当前线程栈底
thread_info可索引到struct task_struct
0 0
- arm上的current
- ARM上的C编程
- 关于ARM上编程的
- ARM上的浮点运算
- arm上的samba移植
- ARM上的浮点运算
- arm上的webdav配置
- 编译 ARM 上的 GDB
- 编写ARM上的脚本
- 浅谈ARM上的Ptrace
- ARM上的浮点运算
- arm上的一些缩略语
- 浅谈ARM上的Ptrace
- ARM CPSR (Current Program Status Register)
- 【FFMPEG】【ARM-Linux开发】arm上安装FFMPEG<arm上参考的是这个>
- 在ARM平台上的C使用#pragma arm section
- 用arm-linux-gdb调试ARM上的应用程序
- 用arm-linux-gdb调试ARM上的应用程序
- Eclipse升级Android SDK失败的解决办法
- KMP模式匹配算法详解(耐心看完定会理解)
- QT设计师布局->调整中要注意的一点
- 【Asp.net之旅】--数据绑定控件之Repeater
- VC++ 当我在界面上使用classwizard时,会弹出 Parsing error对话框,提示:Parsing error:Expected ")" input lin
- arm上的current
- @JoinColumn
- [2012校赛新生组]稳定排序的题目
- 排序之插入排序
- Linux CURL的安装
- 认识org.apache.hadoop.io.compress解码器/编码器
- linux cmdline学习笔记
- 人脸识别facedetect的摄像头简化程序
- mysql sql语句大全