Hi,
I had an idea I wanted to try out: Taking the esp register from the task state, then masking off the bits (basically perform the current() macro as the linux kernel does) to obtain the address of the task_struct of the currently runnning process. I have a stripped down sched.h which contians the declaration of the struct task_struct { ... } inside .../fiasco/src/kern (i am modifying thread-ipc.cpp). However, the compiler compains that "Struct task struct" is undefined.
Thanks, Andrew
Quoting Adam Lackorzynski adam@os.inf.tu-dresden.de:
On Fri Jul 08, 2005 at 15:31:45 -0400, Andrew Davenport wrote:
Thanks for all the previous help. I was wondering: Suppose I have a
filenumber
as a syscall param (from linux server) inside Thread::do_send() in l4. I
want
the inode number for that filenumber, how would I get that? Also, how would
I
get a block list from an inode number?
Inside the kernel? Not at all. That info buried somewhere in the memory of the Linux server. You have no realistic chance of getting that info in the kernel.
Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
_______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers