![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
---------linux kernel-------
青蛙嘎嘎
love linux,love programming
展开
-
linux内核container_of详解
本文转自reille博客--http://velep.com/archives/818.html container_of,是linux内核中一个精妙绝伦的宏。上年在南京开发新产品应用程序时,一个同事借用linux的实现,在应用程序中实现了该宏。之前,曾经弄懂过它,许久未接触linux了,对它有点陌生了。只清楚记得它的作用就是:根据结构体成员得到该结构体指针。 在网上看了多篇关于c转载 2014-01-04 11:20:54 · 1412 阅读 · 0 评论 -
linux时间更新
time_t time (time t *result )是库函数,最终会引起系统调用: kernel\time\timekeeping.c asmlinkage long sys_time(time_t __user * tloc) { time_t i = get_seconds(); if (tloc) { if (put_user(i,tloc)) i = -EFAU原创 2012-10-22 23:29:40 · 3872 阅读 · 0 评论 -
linux 中断处理流程
2012-10-20 luoqindong 使用phy3250开发板. LPC3250中断处理流程: 1.跳到中断向量vector_irq arch\arm\kernel\entry-armv.S .globl __vectors_start __vectors_start: swi SYS_ERROR0 b vector_und + stubs_offset原创 2012-10-20 21:30:20 · 1144 阅读 · 0 评论 -
armlinux内核启动--内存初始化管理
linux版本:2.6.36 相关数据结构 arch/arm/include/asm/setup.h #ifdef CONFIG_ARCH_LH7A40X # define NR_BANKS 16 #else # define NR_BANKS 8 #endif struct membank { unsigned long start; unsigned l转载 2014-11-02 23:08:13 · 1494 阅读 · 0 评论 -
arm linux中断向量注册分析,linux系统调用分析
2012-10-18 luoqindong linux的中断向量从0xffff0000开始,该位置的内容在early_trap_init()函数中初始化: /* * Copy the vectors, stubs and kuser helpers (in entry-armv.S) * into the vector page, mapped at 0xffff0000, and原创 2012-10-20 21:37:05 · 1580 阅读 · 0 评论