pl ignore this mail i am sorry for the wrong mail i sent .



On Mon, May 11, 2009 at 2:50 PM, nidhi mittal hada
<[email protected]>wrote:

> i have compiled and installed kernel 2.6.28.7 on my machine
> and wrote a kernel module which uses simply current->mm
>
> but 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;
> };
>
>
>
>
>
> but in lxr  i found
>
> definition of task_struct is totally different in same version 2.6.28.7 it
> contains many more fields than what i found in my kernel.
> even mm too
>
> how and why are they different i dont understand ..
>
> Nidhi
>
>
>
>
>
> --
> Thanks & Regards
> Nidhi Mittal Hada
>



-- 
Thanks & Regards
Nidhi Mittal Hada

Reply via email to