asas1asas200 92b646ed64
proc_ops: Be aware of kernel API changes (#13)
The proc_ops structure is defined in <include/linux/proc_fs.h> since
Linux v5.6+.
In older kernels, file_operations structure is used for custom hooks in
/proc file system. However, it contains some members that are unnecessary
in VFS, and every time VFS expands file_operations set, /proc code comes
bloated.

On the other hand, not only the space, but also some operations were
saved by this structure to improve its performance.
2021-08-06 18:08:05 +08:00
2021-07-22 06:35:24 +08:00
2021-08-02 02:42:39 +08:00
2021-07-22 06:34:19 +08:00
2021-08-05 14:07:16 +03:00
2021-07-22 06:34:19 +08:00
2021-08-02 02:42:39 +08:00
2021-08-02 15:15:49 +08:00

The Linux Kernel Module Programming Guide

This project keeps the Linux Kernel Module Programming Guide reasonably up to date, with working examples for recent 5.x kernel versions. The guide has been around since 2001 and most copies of it on the web only describe old 2.6.x kernels.

The book can be freely accessed via https://sysprog21.github.io/lkmpg/ The original guide may be found at Linux Documentation Project.

License

The Linux Kernel Module Programming Guide is a free book; you may reproduce and/or modify it under the terms of the Open Software License. Use of this work is governed by a copyleft license that can be found in the LICENSE file.

The complementary sample code is licensed under GNU GPL version 2, as same as Linux kernel.

Description
The Linux Kernel Module Programming Guide (updated for 5.0+ kernels)
Readme 10 MiB
Languages
TeX 94.4%
Shell 4.9%
Makefile 0.7%