进程创建

fork

linux创建线程的函数 fork –> do_fork

do_fork的执行线路

graph LR
do_fork --> copy_process --> get_task_pid --> wake_up_new_task --> put_pid

do_fork函数原型

long _do_fork(unsigned long clone_flags,
	      unsigned long stack_start,
	      unsigned long stack_size,
	      int __user *parent_tidptr,
	      int __user *child_tidptr,
	      unsigned long tls);
  • clone_flags
  • stack_start
  • stack_size
  • parent_tidptr
  • child_tidptr
  • tls

antlr笔记

ANTLR是一款强大的语法分析器生成工具,用于读取、处理、执行和翻译结构化的文本或二进制文件.

类似于flex/bison,根据描述文件,自动生成词法语法分析器; 解析规则文件,生成解析源文件,与SDK组合编译生成可执行文件;

Hugo教程

在linux/windows上只能通过直接release下载,

hugo new site 路径
  • 将主题直接添加到theme文件下面
  • 将主题作为一个submodule
hugo new posts/hugo.md
 hugo server -D --disableFastRender
.
├── archetypes
├── config
├── content
├── data
├── layouts
├── static
├── themes
├── static
└── resources

目录结构说明 以下是每个目录的高级概述,其中包含指向 Hugo 文档中每个相应部分的链接。