Lingze's blog Lingze's blog
timeline
about
friends
categories
tags

lingze

bin不是垃圾桶的意思!
timeline
about
friends
categories
tags
  • labbb
  • linux_os
lingze
2021-01-25

lab2_systemcall

# operating system kernel experiment 2

# System call part

# source code

The main positions of the code are kernel/system_call.s, kernel/Makefile, include/linux/sys.h, include/unistd.h,

# main operation

Modify kernel/Makefile, add who.o to the link parameters,

Modify the nr_system_calls of kernel/system_call.s , modify the number of system call.

Added _NR_whoami definition to include/unistd.h.

Added the sys_whoami function pointer to the end of the sys_call_table array in include/linux/sys.h.

上次更新: 6/24/2025, 5:07:55 AM
Theme by Vdoing | Copyright © 2019-2025 lingze | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式