Messages in this thread | | | From | Noel Burton-Krahn <> | Subject | task_ops? | Date | Mon, 5 Jan 1998 16:38:42 -0800 |
| |
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
| |