Need help programming the AIX kernel

What is the name of the call table variable in the AIX kernel?

I know it is called sys_call_table[]

in the Linux kernel.

I am new to kernel programming. But I need to know in which variables in the kernel the address syscalls are stored ...

+1


a source to share


2 answers


I haven't had to deal with the AIX kernel for a while, but it has its own way of doing things. Have you encountered Writing AIX Kernel Extensions in your research? I believe that some of your questions could be addressed there.



0


a source


AIX uses svc_table_entry as the corresponding concept of the sys_call_table [] entry:

struct svc_table_entry {
    int         (*svc)();       /*  Pointer to kernel function for */
                                /*  this system call.              */
};

      



The bootloader will calculate the number of system calls and dynamically build a "system call" table on the kernel heap via xmalloc. As for the name of this table, I believe it is something like "svc" or "svc64", I don't quite remember.

0


a source







All Articles