Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f82d8ad

Browse files
committed
s/LLKD/LKP where required, similar
1 parent f19c834 commit f82d8ad

File tree

36 files changed

+71
-65
lines changed

36 files changed

+71
-65
lines changed

ch10/query_task_sched.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# query_task_sched.sh
33
# ***************************************************************
44
# This program is part of the source code released for the book
5-
# "Linux Kernel Development Cookbook"
5+
# "Linux Kernel Programming"
66
# (c) Author: Kaiwan N Billimoria
77
# Publisher: Packt
88
# GitHub repository:

ch11/cpu_affinity/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# * (c) Author: Kaiwan N Billimoria
66
# * Publisher: Packt
77
# * GitHub repository:
8-
# * https://github.com/PacktPublishing/LEarn-Linux-Kernel-Development
8+
# * https://github.com/PacktPublishing/Linux-Kernel-Programming
99
# ***************************************************************
1010
# * From: Ch 11 : CPU Scheduling, Part 2
1111
# ***************************************************************

ch11/cpu_affinity/userspc_cpuaffinity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* (c) Author: Kaiwan N Billimoria
77
* Publisher: Packt
88
* GitHub repository:
9-
* https://github.com/PacktPublishing/LEarn-Linux-Kernel-Development
9+
* https://github.com/PacktPublishing/Linux-Kernel-Programming
1010
*
1111
* From: Ch 11 : CPU Scheduling, Part 2
1212
****************************************************************

ch12/1_miscdrv_rdwr_mutexlock/miscdrv_rdwr_mutexlock.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ch16/1_miscdrv_rdwr_mutexlock/miscdrv_rdwr_mutexlock.c
2+
* ch12/1_miscdrv_rdwr_mutexlock/miscdrv_rdwr_mutexlock.c
33
***************************************************************
44
* This program is part of the source code released for the book
55
* "Linux Kernel Programming"
@@ -8,7 +8,7 @@
88
* GitHub repository:
99
* https://github.com/PacktPublishing/Linux-Kernel-Programming
1010
*
11-
* From: Ch 16 : Kernel Synchronization - Part 1
11+
* From: Ch 12 : Kernel Synchronization - Part 1
1212
****************************************************************
1313
* Brief Description:
1414
* This driver is built upon our previous ch12/miscdrv_rdwr/ misc driver.
@@ -19,7 +19,7 @@
1919
* The functionality (the get and set of the 'secret') remains identical to the
2020
* original implementation.
2121
*
22-
* For details, please refer the book, Ch 16.
22+
* For details, please refer the book, Ch 12.
2323
*/
2424
#define pr_fmt(fmt) "%s:%s(): " fmt, KBUILD_MODNAME, __func__
2525

@@ -45,7 +45,7 @@
4545

4646
MODULE_AUTHOR("Kaiwan N Billimoria");
4747
MODULE_DESCRIPTION
48-
("LLKD book:ch16/1_miscdrv_rdwr_mutexlock: simple misc char driver rewritten with mutex locking");
48+
("LKP book:ch12/1_miscdrv_rdwr_mutexlock: simple misc char driver rewritten with mutex locking");
4949
MODULE_LICENSE("Dual MIT/GPL");
5050
MODULE_VERSION("0.1");
5151

@@ -250,10 +250,13 @@ static const struct file_operations llkd_misc_fops = {
250250
.write = write_miscdrv_rdwr,
251251
.llseek = no_llseek, // dummy, we don't support lseek(2)
252252
.release = close_miscdrv_rdwr,
253-
/* As you learn more reg device drivers, you'll realize that the
254-
* ioctl() would be a very useful method here. As an exercise,
255-
* implement an ioctl method; when issued with the 'GETSTATS' 'command',
256-
* it should return the statistics (tx, rx, errors) to the calling app
253+
/* As you learn more reg device drivers (refer this book's companion guide
254+
* 'Linux Kernel Programming (Part 2): Writing character device drivers: Learn
255+
* to work with user-kernel interfaces, handle peripheral I/O & hardware
256+
* interrupts '), you'll realize that the ioctl() would be a very useful method
257+
* here. As an exercise, implement an ioctl method; when issued with the
258+
* 'GETSTATS' 'command', it should return the statistics (tx, rx, errors) to
259+
* the calling app.
257260
*/
258261
};
259262

ch12/2_miscdrv_rdwr_spinlock/miscdrv_rdwr_spinlock.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* From: Ch 12 : Kernel Synchronization - Part 1
1212
****************************************************************
1313
* Brief Description:
14-
* This driver is built upon our previous ch16/1_miscdrv_rdwr_mutexlock/
14+
* This driver is built upon our previous ch12/1_miscdrv_rdwr_mutexlock/
1515
* misc driver.
1616
* The key difference: we use spinlocks in place of the mutex locks (this isn't
1717
* the case everywhere in the driver though; we keep the mutex as well for some
@@ -44,7 +44,7 @@
4444

4545
MODULE_AUTHOR("Kaiwan N Billimoria");
4646
MODULE_DESCRIPTION(
47-
"LLKD book:ch16/2_miscdrv_rdwr_spinlock: simple misc char driver rewritten with spinlocks");
47+
"LKP book:ch12/2_miscdrv_rdwr_spinlock: simple misc char driver rewritten with spinlocks");
4848
MODULE_LICENSE("Dual MIT/GPL");
4949
MODULE_VERSION("0.1");
5050

@@ -288,10 +288,13 @@ static const struct file_operations llkd_misc_fops = {
288288
.write = write_miscdrv_rdwr,
289289
.llseek = no_llseek, // dummy, we don't support lseek(2)
290290
.release = close_miscdrv_rdwr,
291-
/* As you learn more reg device drivers, you'll realize that the
292-
* ioctl() would be a very useful method here. As an exercise,
293-
* implement an ioctl method; when issued with the 'GETSTATS' 'command',
294-
* it should return the statistics (tx, rx, errors) to the calling app
291+
/* As you learn more reg device drivers (refer this book's companion guide
292+
* 'Linux Kernel Programming (Part 2): Writing character device drivers: Learn
293+
* to work with user-kernel interfaces, handle peripheral I/O & hardware
294+
* interrupts '), you'll realize that the ioctl() would be a very useful method
295+
* here. As an exercise, implement an ioctl method; when issued with the
296+
* 'GETSTATS' 'command', it should return the statistics (tx, rx, errors) to
297+
* the calling app.
295298
*/
296299
};
297300

ch13/1_rmw_atomic_bitops/rmw_atomic_bitops.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
* GitHub repository:
99
* https://github.com/PacktPublishing/Linux-Kernel-Programming
1010
*
11-
* From: Ch 17 : Kernel synchronization Part 2
11+
* From: Ch 13 : Kernel synchronization, Part 2
1212
****************************************************************
1313
* Brief Description:
1414
* A quick demo showing the usage of the RMW (Read Modify Write) atomic bitwise
1515
* APIs. Here, there's no device, so we simply use these APIs on a RAM variable!
1616
*
17-
* For details, please refer the book, Ch 17.
17+
* For details, please refer the book, Ch 13.
1818
*/
1919
//#define pr_fmt(fmt) "%s:%s(): " fmt, KBUILD_MODNAME, __func__
2020

@@ -29,7 +29,7 @@
2929

3030
MODULE_AUTHOR("Kaiwan N Billimoria");
3131
MODULE_DESCRIPTION(
32-
"LLKD book:ch17/2_rmw_atomic_bitops: quick demo of the RMW atomic bitwise operators");
32+
"LKP book:ch13/2_rmw_atomic_bitops: quick demo of the RMW atomic bitwise operators");
3333
MODULE_LICENSE("Dual MIT/GPL");
3434
MODULE_VERSION("0.1");
3535

ch13/2_percpu/percpu_var.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ch17/2_percpu/percpu_var.c
2+
* ch13/2_percpu/percpu_var.c
33
***************************************************************
44
* This program is part of the source code released for the book
55
* "Linux Kernel Programming"
@@ -8,11 +8,11 @@
88
* GitHub repository:
99
* https://github.com/PacktPublishing/Linux-Kernel-Programming
1010
*
11-
* From: Ch 17 : Kernel Synchronization Part 2
11+
* From: Ch 13 : Kernel Synchronization, Part 2
1212
****************************************************************
1313
* Brief Description:
1414
*
15-
* For details, please refer the book, Ch 17.
15+
* For details, please refer the book, Ch 13.
1616
*/
1717
#define pr_fmt(fmt) "%s:%s(): " fmt, KBUILD_MODNAME, __func__
1818

@@ -31,7 +31,7 @@
3131
#define OURMODNAME "percpu_var"
3232

3333
MODULE_AUTHOR("Kaiwan N Billimoria");
34-
MODULE_DESCRIPTION("LLKD book:ch17/2_percpu: demo of using percpu variables");
34+
MODULE_DESCRIPTION("LKP book:ch13/2_percpu: demo of using percpu variables");
3535
MODULE_LICENSE("Dual MIT/GPL");
3636
MODULE_VERSION("0.1");
3737

ch13/3_lockdep/buggy_thrdshow_eg/thrd_showall_buggy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ch17/3_lockdep/buggy_thrdshow_eg/thrd_showall_buggy.c
2+
* ch13/3_lockdep/buggy_thrdshow_eg/thrd_showall_buggy.c
33
***************************************************************
44
* This program is part of the source code released for the book
55
* "Linux Kernel Programming"
@@ -8,7 +8,7 @@
88
* GitHub repository:
99
* https://github.com/PacktPublishing/Linux-Kernel-Programming
1010
*
11-
* From: Ch 17 : Kernel Synchronization Part 2
11+
* From: Ch 13 : Kernel Synchronization, Part 2
1212
****************************************************************
1313
* Brief Description:
1414
* This kernel module is based upon our earlier kernel module from Ch 6:
@@ -22,7 +22,7 @@
2222
* Of course, we assume this is run on a kernel that has lockdep enabled
2323
* (CONFIG_PROVE_LOCKING).
2424
*
25-
* For details, please refer the book, Ch 17.
25+
* For details, please refer the book, Ch 13.
2626
*/
2727
#include <linux/kernel.h>
2828
#include <linux/module.h>
@@ -35,7 +35,7 @@
3535
#define OURMODNAME "thrd_showall_buggy"
3636

3737
MODULE_AUTHOR("Kaiwan N Billimoria");
38-
MODULE_DESCRIPTION("LLKD book: ch17/3_lockdep/buggy_thrdshow_eg:"
38+
MODULE_DESCRIPTION("LKP book: ch13/3_lockdep/buggy_thrdshow_eg:"
3939
" BUGGY demo to display all threads by iterating over the task list");
4040
MODULE_LICENSE("Dual MIT/GPL");
4141
MODULE_VERSION("0.1");

ch13/3_lockdep/deadlock_eg_AB-BA/deadlock_eg_AB-BA.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ch17/3_lockdep/deadlock_eg_AB-BA/deadlock_eg_AB-BA.c
2+
* ch13/3_lockdep/deadlock_eg_AB-BA/deadlock_eg_AB-BA.c
33
***************************************************************
44
* This program is part of the source code released for the book
55
* "Linux Kernel Programming"
@@ -8,14 +8,14 @@
88
* GitHub repository:
99
* https://github.com/PacktPublishing/Linux-Kernel-Programming
1010
*
11-
* From: Ch 17: Kernel Synchronization Part 2
11+
* From: Ch 13: Kernel Synchronization, Part 2
1212
****************************************************************
1313
* Brief Description:
1414
* Here we deliberately violate our lock ordering rule, thus ending up with a
1515
* classic AB-BA deadlock. Running a debug kernel, we expect lockdep to catch
1616
* and report it!
1717
*
18-
* For details, please refer the book, Ch 17.
18+
* For details, please refer the book, Ch 13.
1919
*/
2020
#include <linux/init.h>
2121
#include <linux/module.h>
@@ -31,7 +31,7 @@
3131
#define OURMODNAME "deadlock_eg_AB-BA"
3232

3333
MODULE_AUTHOR("Kaiwan N Billimoria");
34-
MODULE_DESCRIPTION("LLKD book:ch17/3_lockdep/deadlock_eg_AB-BA: small demo of "
34+
MODULE_DESCRIPTION("LKP book:ch13/3_lockdep/deadlock_eg_AB-BA: small demo of "
3535
"deliberately setting up an AB-BA deadlock; lockdep catches it");
3636
MODULE_LICENSE("Dual MIT/GPL");
3737
MODULE_VERSION("0.1");

ch13/3_lockdep/fixed_thrdshow_eg/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Makefile : auto-generated by script xcc_lkm.sh
2-
# For 'Linux Kernel Development Cookbook', Kaiwan N Billimoria, Packt
2+
# For 'Linux Kernel Programming', Kaiwan N Billimoria, Packt
33
# [...]/thrd_showall
44
#
55
# To support cross-compiling for kernel modules:

ch13/3_lockdep/fixed_thrdshow_eg/thrd_showall_fixed.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ch17/3_lockdep/fixed_thrdshow_eg/thrd_showall_fixed.c
2+
* ch13/3_lockdep/fixed_thrdshow_eg/thrd_showall_fixed.c
33
***************************************************************
44
* This program is part of the source code released for the book
55
* "Linux Kernel Programming"
@@ -8,7 +8,7 @@
88
* GitHub repository:
99
* https://github.com/PacktPublishing/Linux-Kernel-Programming
1010
*
11-
* From: Ch 17 : Kernel Synchronization Part 2
11+
* From: Ch 13 : Kernel Synchronization, Part 2
1212
****************************************************************
1313
* Brief Description:
1414
* This kernel module is based upon our earlier kernel module from Ch 6:
@@ -20,7 +20,7 @@
2020
* Here, we fix it by first unlocking the relevant lock (struct task_struct
2121
* alloc_lock), then calling get_task_comm() and then re-locking it.
2222
*
23-
* For details, please refer the book, Ch 17.
23+
* For details, please refer the book, Ch 13.
2424
*/
2525
#include <linux/kernel.h>
2626
#include <linux/module.h>
@@ -33,7 +33,7 @@
3333
#define OURMODNAME "thrd_showall_fixed"
3434

3535
MODULE_AUTHOR("Kaiwan N Billimoria");
36-
MODULE_DESCRIPTION("LLKD book: ch17/3_lockdep/fixed_thrdshow_eg:"
36+
MODULE_DESCRIPTION("LKP book: ch13/3_lockdep/fixed_thrdshow_eg:"
3737
" FIXED demo to display all threads by iterating over the task list");
3838
MODULE_LICENSE("Dual MIT/GPL");
3939
MODULE_VERSION("0.1");

ch4/helloworld_lkm/helloworld_lkm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <linux/module.h>
2323

2424
MODULE_AUTHOR("<insert your name here>");
25-
MODULE_DESCRIPTION("LLKD book:ch4/helloworld_lkm: hello, world, our first LKM");
25+
MODULE_DESCRIPTION("LKP book:ch4/helloworld_lkm: hello, world, our first LKM");
2626
MODULE_LICENSE("Dual MIT/GPL");
2727
MODULE_VERSION("0.1");
2828

ch4/printk_loglvl/printk_loglvl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <linux/kernel.h>
2424

2525
MODULE_AUTHOR("<insert your name here>");
26-
MODULE_DESCRIPTION("LLKD book:ch4/printk_loglvl: print at each kernel log level");
26+
MODULE_DESCRIPTION("LKP book:ch4/printk_loglvl: print at each kernel log level");
2727
MODULE_LICENSE("Dual MIT/GPL");
2828
MODULE_VERSION("0.1");
2929

ch5/cross/helloworld_lkm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <linux/kernel.h>
2727

2828
MODULE_AUTHOR("Kaiwan N Billimoria");
29-
MODULE_DESCRIPTION("LLKD book:ch5/cross: hello, world, our first Raspberry Pi LKM");
29+
MODULE_DESCRIPTION("LKP book:ch5/cross: hello, world, our first Raspberry Pi LKM");
3030
MODULE_LICENSE("Dual MIT/GPL");
3131
MODULE_VERSION("0.1");
3232

ch5/fp_in_lkm/fp_in_lkm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define OURMODNAME "fp_in_lkm"
2525

2626
MODULE_AUTHOR("<insert your name here>");
27-
MODULE_DESCRIPTION("LLKD book:ch5/fp_in_lkm: no performing FP \
27+
MODULE_DESCRIPTION("LKP book:ch5/fp_in_lkm: no performing FP \
2828
(floating point) arithmetic in kernel mode");
2929
MODULE_LICENSE("Dual MIT/GPL");
3030
MODULE_VERSION("0.1");

ch5/min_sysinfo/min_sysinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#define MYMODNAME "min_sysinfo"
2626
MODULE_AUTHOR("Kaiwan N Billimoria");
27-
MODULE_DESCRIPTION("LLKD book:ch5/min_sysinfo: print some minimal system info");
27+
MODULE_DESCRIPTION("LKP book:ch5/min_sysinfo: print some minimal system info");
2828
MODULE_LICENSE("Dual MIT/GPL");
2929
MODULE_VERSION("0.1");
3030

ch5/modparams/modparams1/modparams1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define OUR_MODNAME "modparams1"
2222
MODULE_AUTHOR("Kaiwan N Billimoria");
23-
MODULE_DESCRIPTION("LLKD book:ch5/modparams/modparams1: module parameters demo LKM #1");
23+
MODULE_DESCRIPTION("LKP book:ch5/modparams/modparams1: module parameters demo LKM #1");
2424
MODULE_LICENSE("Dual MIT/GPL");
2525
MODULE_VERSION("0.1");
2626

ch5/modparams/modparams2/modparams2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#define OUR_MODNAME "modparams2"
2525
MODULE_AUTHOR("Kaiwan N Billimoria");
26-
MODULE_DESCRIPTION("LLKD book:ch5/modparams/modparams2: module parameters");
26+
MODULE_DESCRIPTION("LKP book:ch5/modparams/modparams2: module parameters");
2727
MODULE_LICENSE("Dual MIT/GPL");
2828
MODULE_VERSION("0.1");
2929

ch6/current_affairs/current_affairs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define OURMODNAME "current_affairs"
2626

2727
MODULE_AUTHOR("Kaiwan N Billimoria");
28-
MODULE_DESCRIPTION("LLKD book:ch6/current_affairs: display a few members of"
28+
MODULE_DESCRIPTION("LKP book:ch6/current_affairs: display a few members of"
2929
" the current process' task structure");
3030
MODULE_LICENSE("Dual MIT/GPL");
3131
MODULE_VERSION("0.1");

ch6/foreach/prcs_showall/prcs_showall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define OURMODNAME "prcs_showall"
3535

3636
MODULE_AUTHOR("Kaiwan N Billimoria");
37-
MODULE_DESCRIPTION("LLKD book:ch6/foreach/prcs_showall: "
37+
MODULE_DESCRIPTION("LKP book:ch6/foreach/prcs_showall: "
3838
"Show all processes by iterating over the task list");
3939
MODULE_LICENSE("Dual MIT/GPL");
4040
MODULE_VERSION("0.1");

ch6/foreach/thrd_showall/thrd_showall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define OURMODNAME "thrd_showall"
3131

3232
MODULE_AUTHOR("Kaiwan N Billimoria");
33-
MODULE_DESCRIPTION("LLKD book:ch6/foreach/thrd_showall:"
33+
MODULE_DESCRIPTION("LKP book:ch6/foreach/thrd_showall:"
3434
" demo to display all threads by iterating over the task list");
3535
MODULE_LICENSE("Dual MIT/GPL");
3636
MODULE_VERSION("0.1");

ch7/show_kernel_seg/kernel_seg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#define OURMODNAME "show_kernel_seg"
4444

4545
MODULE_AUTHOR("Kaiwan N Billimoria");
46-
MODULE_DESCRIPTION("LLKD book:ch7/kernel_seg: display some kernel segment details");
46+
MODULE_DESCRIPTION("LKP book:ch7/kernel_seg: display some kernel segment details");
4747
MODULE_LICENSE("Dual MIT/GPL");
4848
MODULE_VERSION("0.1");
4949

ch8/page_exact_loop/page_exact_loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
MODULE_AUTHOR("Kaiwan N Billimoria");
2929
MODULE_DESCRIPTION
30-
("LLKD ch8/page_exact_loop: demo using the superior [alloc|free]_pages_exact() APIs");
30+
("LKP ch8/page_exact_loop: demo using the superior [alloc|free]_pages_exact() APIs");
3131
MODULE_LICENSE("Dual MIT/GPL");
3232
MODULE_VERSION("0.1");
3333

ch8/slab1/slab1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define OURMODNAME "slab1"
2222

2323
MODULE_AUTHOR("Kaiwan N Billimoria");
24-
MODULE_DESCRIPTION("LLKD book:ch8/slab1: k[m|z]alloc, kfree, basic demo");
24+
MODULE_DESCRIPTION("LKP book:ch8/slab1: k[m|z]alloc, kfree, basic demo");
2525
MODULE_LICENSE("Dual MIT/GPL");
2626
MODULE_VERSION("0.1");
2727

0 commit comments

Comments
 (0)