lkml.org 
[lkml]   [1998]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjecttask_ops?
Date
Happy New Year,

I am hacking a linux-2.0.32 kernel. I would like to create a special kind
of task which responds to things like system calls, signals, and interrupts
differently from other tasks. One possible solution is to add a field like
this to task_struct:

struct task_ops {
int (*syscall)(struct pt_regs regs);
int (*signal)(??);
int (*interrupt)(??);
};

struct task_ops default_task_ops;

...and call the right op in entry.S.

My question is: has anyone considered this? Thought of a better solution?
Rejected it? I'm not hot on i386 assembly, so I would rather not muck
about too much with entry.S.

--Noel



\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.037 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site