/* If you change this, you must change the associated assembly-languages *constantsdefinedbelow,THREAD_*.
*/ struct thread_struct { /* kernel stack pointer (must be first field in structure) */ unsignedlong ksp; unsignedlong ksp_limit; /* if ksp <= ksp_limit stack overflow */ void *pgdir; /* root of page-table tree */ struct pt_regs *regs; /* Pointer to saved register state */
};
/* The size allocated for kernel stacks. This _must_ be a power of two! */ # define KERNEL_STACK_SIZE 0x2000
/* Return some info about the user process TASK. */ # define task_tos(task) ((unsignedlong)(task) + KERNEL_STACK_SIZE) # define task_regs(task) ((struct pt_regs *)task_tos(task) - 1)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.