From e800505b8f58f0dc2a37298c0d3a889b3d788461 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Mon, 9 Aug 2021 23:26:01 +0800 Subject: [PATCH] Point to corresponding kernel header --- lkmpg.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lkmpg.tex b/lkmpg.tex index d112dad..69d64b6 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -858,7 +858,7 @@ The minor number is used only by the driver itself to differentiate which device Adding a driver to your system means registering it with the kernel. This is synonymous with assigning it a major number during the module's initialization. -You do this by using the \cpp|register_chrdev| function, defined by linux/fs.h. +You do this by using the \cpp|register_chrdev| function, defined by \src{include/linux/fs.h}. \begin{code} int register_chrdev(unsigned int major, const char *name, struct file_operations *fops); -- 2.39.5