Creating a System Call in Linux

前端 未结 3 720
自闭症患者
自闭症患者 2021-02-03 15:21

We just got a midterm project today for my \"operating systems\" course, we are requested to implement a system call (and I guess I assume we\'ll have to write a piece of code t

3条回答
  •  眼角桃花
    2021-02-03 16:08

    I understand I'll need to update the table of the system calls

    It's /usr/src/linux/arch/i386/kernel/syscall_table.S

    does this mean I'll have to recompile the whole kernel, so the kernel knows about my module?

    Yes, indeed.

    Just wanted to get a feel for the size of the effort I'll be making.
    

    If you know what code you are going to write as a part of the system call, you're already done. You only have to wait out the kernel recompilation time. Here's a set of instructions:

    Implementing a System Call in Linux

提交回复
热议问题