Sonntag, 20. März 2011

Linux kernel : process descriptor

Linux kernel : process descriptor

1.To manage processes, the kernel must have a clear picture of what EACH process is doing.

2. it must know, eg., the process's priority, whether it is running on a cpu or blocked on an event, what address space has been assigned ti it, which files it is allowed to address and so on.

3. This is the role of the process descriptor -- a task_struct type structure whose fields contain all the information related to a single process. ( the kernel also defines the task_t data type to be equivalent to struct task_struct.

4. In addition to a large number of fields containing process attributes, the process descriptor contains several pointers to OTHER data structures that, in turn, contain pointers to other structures.

eg.,

i) thread_info :low_level information for the process

ii) mm_struct : pointers to memory area descriptors

iii) tty_struct : tty associated with the process

iv) fs-struct : current directory

v) file_struct : pointers to file descriptors

vi) signal_struct : signals received

source :
ULK3 , page 81-82

丁望
説文解字注データ--說文解字第一篇上
http://kanji-database.sourceforge.net/dict/swjz/

一 : 惟初大極。道立於一。造分天地。化成萬物。漢書曰。元元本本。數始於一。凡一之屬皆从一。一之形。於六書爲指事。凡云凡某之屬皆从某者、自序所謂分別部居、不相襍廁也。爾雅、方言所以發明轉注假借。

倉頡、訓纂、?熹及凡將、急就、元尚、飛龍、聖皇諸篇。僅以四言七言成文。皆不言字形原委。以字形爲書。俾學者因形以考音與義。實始於許。功莫大焉。於悉切。古音第十二部。

○凡注言一部、二部、以至十七部者。謂古韵也。玉裁作六書音均表。識古韵凡十七部。自倉頡造字時至唐虞三代秦漢、以及許叔重造說文曰某聲、曰讀若某者。皆條理合一不紊。故旣用徐鉉切音矣。而又某字志之曰古音第幾部。

又恐學者未見六書音均之書。不知其所謂。乃於說文十五篇之後。附六書音均表五篇。俾形聲相表裏。因耑推究。於古形、古音、古義可互求焉。


Keine Kommentare: