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.


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


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




Keine Kommentare: