﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-驽马十驾-文章分类-linux kernel</title><link>http://www.cnitblog.com/ork/category/7820.html</link><description>给我智慧，让我知道我真正的利益所在；
给我坚定的意志，让我能够按照智慧的引导行事</description><language>zh-cn</language><lastBuildDate>Fri, 07 Oct 2011 02:15:18 GMT</lastBuildDate><pubDate>Fri, 07 Oct 2011 02:15:18 GMT</pubDate><ttl>60</ttl><item><title>pid结构等</title><link>http://www.cnitblog.com/ork/articles/51498.html</link><dc:creator>驽马</dc:creator><author>驽马</author><pubDate>Sat, 15 Nov 2008 06:14:00 GMT</pubDate><guid>http://www.cnitblog.com/ork/articles/51498.html</guid><wfw:comment>http://www.cnitblog.com/ork/comments/51498.html</wfw:comment><comments>http://www.cnitblog.com/ork/articles/51498.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/ork/comments/commentRss/51498.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/ork/services/trackbacks/51498.html</trackback:ping><description><![CDATA[<br>/*<br>&nbsp;* struct upid is used to get the id of the struct pid, as it is<br>&nbsp;* seen in particular namespace. Later the struct pid is found with<br>&nbsp;* find_pid_ns() using the int nr and struct pid_namespace *ns.<br>&nbsp;*/<br><br>struct upid {<br>&nbsp;&nbsp; &nbsp;/* Try to keep pid_chain in the same cacheline as nr for find_pid */<br>&nbsp;&nbsp; &nbsp;int nr;<br>&nbsp;&nbsp; &nbsp;struct pid_namespace *ns;<br>&nbsp;&nbsp; &nbsp;struct hlist_node pid_chain;<br>};<br><br>
struct pid<br>
{<br>
&nbsp;&nbsp;&nbsp; atomic_t count;<br>
&nbsp;&nbsp;&nbsp; /* lists of tasks that use this pid */<br>
&nbsp;&nbsp;&nbsp; struct hlist_head tasks[PIDTYPE_MAX];<br>
&nbsp;&nbsp;&nbsp; struct rcu_head rcu;<br>
&nbsp;&nbsp;&nbsp; int level;<br>
&nbsp;&nbsp;&nbsp; struct upid numbers[1];<br>
};
<br><br><br><img src ="http://www.cnitblog.com/ork/aggbug/51498.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/ork/" target="_blank">驽马</a> 2008-11-15 14:14 <a href="http://www.cnitblog.com/ork/articles/51498.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>