Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment 5 Creating and Calling Own System Call #3

Merged
merged 7 commits into from
Oct 14, 2023
Merged

Conversation

jimin-kiim
Copy link
Owner

@jimin-kiim jimin-kiim commented Oct 14, 2023

  • defining system call function
    • creating system call function in linux-5.4.214/kernel/my_syscall.c
    • adding code to Makefile linux-5.4.214/kernel/Makefile
  • registering system call number to the table
    • ARM64
      • linux-5.4.214/include/uapi/asm-generic/unistd.h
      • linux-5.4.214/include/linux/syscalls.h
  • compiling the kernel
    • make menuconfig
    • make -j 4
    • make modules -j 4
    • sudo make modules_install -j 4
    • sudo make install
  • using sys_mycall
    • syscall_example.c
    • gcc syscall_example.c -o result: compiling c code
    • ./result
    • sudo dmesg: printing out kernel diagnostic message

Resolved: #2

@jimin-kiim jimin-kiim self-assigned this Oct 14, 2023
@jimin-kiim jimin-kiim merged commit c3cac7f into main Oct 14, 2023
@jimin-kiim jimin-kiim deleted the assignment-5 branch October 14, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment 5: creating own system call
1 participant