files, fs, tty, keyrings, mems_allowed, mempolicy: */spinlock_t alloc_lock;/* Protection of the PI data structures: */raw_spinlock_t pi_lock;struct wake_q_node wake_q;#ifdefCONFIG_RT_MUTEXES/* PI waiters blocked on a rt_mutex held ...
int prio, static_prio, normal_prio; unsigned int rt_priority; 实时优先级范围是0到MAX_RT_PRIO-1(即99),而普通进程的静态优先级范围是从MAX_RT_PRIO到MAX_PRIO-1(即100到139)。值越大静态优先级越低。 /*http://lxr.free-electrons.com/source/include/linux/sched/prio.h#L21*/ #define MAX_USER...
* @of_node: Associated device tree node. * @fwnode: Associated device node supplied by platform firmware. * @devt: For creating the sysfs "dev". * @id: device instance * @devres_lock: Spinlock to protect the resource of the device. * @devres_head: The resources list of the device. ...
1inteth_header(structsk_buff *skb,structnet_device *dev, u16 type,void*daddr,void*saddr,intlen)2{3//将skb->data = skb->data + ETH_ALEN;4structethhdr *eth = (structethhdr*)skb_push(skb, ETH_ALEN);56if(type !=ETH_P_802_3)7eth->proto = htons(type);//htons()将本地类型转换...
(p- >__state),p->prio,p->static_prio,p->rt_priority,(p->parent)- >pid,task_cpu(p),tran_policy(p->policy)); } //入口函数 static int __init print_pcb(void) //init宏是由init.h文件所支持 { struct task_struct *task,*p,*tmp,*q; struct list_head *pos; //struct task_...
skb_dst_set_noref(skb, &rt->dst); ... //发送 ip_local_out(skb); } 在ip_queue_xmit 里我们开头就看到了路由项查找, ip_route_output_ports 这个函数中完成路由选择。路由选择就是到路由表中进行匹配,然后决定使用哪个网卡发送出去。 Linux 中最多可以有 255 张路由表,其中默认情况下有 local 和 ...
int prio, static_prio, normal_prio; unsigned int rt_priority; 实时优先级范围是0到MAX_RT_PRIO-1(即99),而普通进程的静态优先级范围是从MAX_RT_PRIO到MAX_PRIO-1(即100到139)。值越大静态优先级越低。 /* http://lxr.free-electrons.com/source/include/linux/sched/prio.h#L21 */ #define MAX_...
intprio;intstatic_prio;intnormal_prio;unsignedintrt_priority; structsched_entityse;structsched_rt_entityrt;structsched_dl_entitydl;conststructsched_class*sched_class; structsched_statisticsstats;unsignedintpolicy;intnr_cpus_allowed;constcpumask_t*cpus_ptr;cpumask_t*user_cpus_ptr;cpumask_tcpus_mask...
intprio, static_prio, normal_prio;unsignedintrt_priority; 实时优先级范围是0到MAX_RT_PRIO-1(即99),而普通进程的静态优先级范围是从MAX_RT_PRIO到MAX_PRIO-1(即100到139)。值越大静态优先级越低。 /* http://lxr.free-electrons.com/source/include/linux/sched/prio.h#L21 */#defineMAX_USER_RT_...
struct rt_mutex_waiter *pi_blocked_on; #endif (28)、死锁检测 #ifdef CONFIG_DEBUG_MUTEXES /* mutex deadlock detection */ struct mutex_waiter *blocked_on; #endif (29)、JFS文件系统 /* journalling filesystem info */ void *journal_info; ...