内核创建进行所进行的工作,本文阅读的内核代码为Linux kernel 2.6。

  进程创建的大部分工作由do_fork这个函数完成,函数原型如下:

long do_fork(unsigned long clone_flags,
          unsigned long stack_start,
          struct pt_regs *regs,
          unsigned long stack_size,
          int __user *parent_tidptr,
          int __user *child_tidptr)
View Code

相关文章:

  • 2021-06-23
  • 2022-01-02
  • 2021-06-03
  • 2021-09-25
  • 2021-09-25
  • 2021-09-25
猜你喜欢
  • 2021-11-29
  • 2021-07-22
  • 2021-08-09
  • 2021-12-07
  • 2021-07-17
  • 2021-09-25
  • 2021-11-21
相关资源
相似解决方案