| title: | task struct contradiction in kernel source |
|
i have compiled and installed kernel 2.6.28.7 on my machineand wrote a kernel module which uses simply current- mmbut compilation error comes using field mm in my machine in sched.h definition if task_struct is ....contains no mm field ...so the error ...
struct task_struct {/* these are hardcoded - don't touch */ long state; /* -1 unrunnable, 0 runnable, 0 stopped */ long counter; long priority; long signal;
fn_ptr sig_restorer; fn_ptr sig_fn[32];/* various fields */ int exit_code; unsigned long end_code,end_data,brk,start_stack; long pid,father,pgrp,session,leader; unsigned short uid,euid,suid;
unsigned short gid,egid,sgid; long alarm; long utime,stime,cutime,cstime,start_time; unsigned short used_math;/* file system info */ int tty; /* -1 if no tty, so it must be signed */
unsigned short umask; struct m_inode * pwd; struct m_inode * root; unsigned long close_on_exec; struct file * filp[NR_OPEN];/* ldt for this task 0 - zero 1 - cs 2 - ds&ss */
struct desc_struct ldt[3];/* tss for this task */ struct tss_struct tss;}; |