linux用户态信号处理函数调用流程如上图,ret_to_user是系统调用、中断、异常触发处理完成后都会调用的函数,调用路径(arm64):
ret_to_user -> work_pending -> do_notify_resume(arch/arm64/kernel/signal.c) -> do_signal -> handle_signal -> setup_rt_frame。
setup_rt_frame里面会将注册处理函数压入到用户线程栈上,待返回到用户态,注册函数即被调用执行。

相关文章:

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