From efbe240b39b281d9af47c0de9c4f2d5afd974795 Mon Sep 17 00:00:00 2001 From: jserv Date: Sun, 6 Oct 2024 13:22:59 +0000 Subject: [PATCH] deploy: 1fc53057147e1d829231c0266d3d2aa79e5cff1b --- index.html | 39 +++++++++++++++++++-------------------- lkmpg-for-ht.html | 39 +++++++++++++++++++-------------------- 2 files changed, 38 insertions(+), 40 deletions(-) diff --git a/index.html b/index.html index d700d863..667ec04f 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@

The Linux Kernel Module Programming Guide

Peter Jay Salzman, Michael Burian, Ori Pomerantz, Bob Mottram, Jim Huang

-
October 5, 2024
+
October 6, 2024
@@ -1947,25 +1947,24 @@

7 48{ 49    our_proc_file = proc_create(procfs_name, 0644, NULL, &proc_file_fops); 50    if (NULL == our_proc_file) { -51        proc_remove(our_proc_file); -52        pr_alert("Error:Could not initialize /proc/%s\n", procfs_name); -53        return -ENOMEM; -54    } -55 -56    pr_info("/proc/%s created\n", procfs_name); -57    return 0; -58} -59 -60static void __exit procfs1_exit(void) -61{ -62    proc_remove(our_proc_file); -63    pr_info("/proc/%s removed\n", procfs_name); -64} -65 -66module_init(procfs1_init); -67module_exit(procfs1_exit); -68 -69MODULE_LICENSE("GPL"); +51        pr_alert("Error:Could not initialize /proc/%s\n", procfs_name); +52        return -ENOMEM; +53    } +54 +55    pr_info("/proc/%s created\n", procfs_name); +56    return 0; +57} +58 +59static void __exit procfs1_exit(void) +60{ +61    proc_remove(our_proc_file); +62    pr_info("/proc/%s removed\n", procfs_name); +63} +64 +65module_init(procfs1_init); +66module_exit(procfs1_exit); +67 +68MODULE_LICENSE("GPL");

7.1 The proc_ops Structure

diff --git a/lkmpg-for-ht.html b/lkmpg-for-ht.html index d700d863..667ec04f 100644 --- a/lkmpg-for-ht.html +++ b/lkmpg-for-ht.html @@ -18,7 +18,7 @@

The Linux Kernel Module Programming Guide

Peter Jay Salzman, Michael Burian, Ori Pomerantz, Bob Mottram, Jim Huang

-
October 5, 2024
+
October 6, 2024
@@ -1947,25 +1947,24 @@

7 48{ 49    our_proc_file = proc_create(procfs_name, 0644, NULL, &proc_file_fops); 50    if (NULL == our_proc_file) { -51        proc_remove(our_proc_file); -52        pr_alert("Error:Could not initialize /proc/%s\n", procfs_name); -53        return -ENOMEM; -54    } -55 -56    pr_info("/proc/%s created\n", procfs_name); -57    return 0; -58} -59 -60static void __exit procfs1_exit(void) -61{ -62    proc_remove(our_proc_file); -63    pr_info("/proc/%s removed\n", procfs_name); -64} -65 -66module_init(procfs1_init); -67module_exit(procfs1_exit); -68 -69MODULE_LICENSE("GPL"); +51        pr_alert("Error:Could not initialize /proc/%s\n", procfs_name); +52        return -ENOMEM; +53    } +54 +55    pr_info("/proc/%s created\n", procfs_name); +56    return 0; +57} +58 +59static void __exit procfs1_exit(void) +60{ +61    proc_remove(our_proc_file); +62    pr_info("/proc/%s removed\n", procfs_name); +63} +64 +65module_init(procfs1_init); +66module_exit(procfs1_exit); +67 +68MODULE_LICENSE("GPL");

7.1 The proc_ops Structure