Commit Graph

451 Commits

Author SHA1 Message Date
Kaiwan N Billimoria
1eea58479e Makefile: prefix the include config directive with '-' to fail gracefully if reqd 2024-11-26 10:13:15 +05:30
Kaiwan N Billimoria
b7bb3eabba Merge branch 'main' of https://github.com/PacktPublishing/Linux-Kernel-Programming_2E 2024-11-01 08:34:58 +05:30
Kaiwan N Billimoria
2662dd18f8 use cmd || true style to ensure execution continues on failure
(due to set -e); reported by eibisidi (github)
2024-11-01 08:30:48 +05:30
Kaiwan N Billimoria
deaedf0efb Declare prototypes for functions that aren't marked static,to prevent compiler warnings; credit @wiktorjl 2024-10-01 10:55:37 +05:30
Kaiwan N Billimoria
2778d9d2a4 add func protos to get rid of warnings 2024-09-28 11:33:10 +05:30
Kaiwan N Billimoria
233ff6e223 colour highlight the failure/warn/success msgs 2024-09-27 17:44:50 +05:30
Kaiwan N Billimoria
861575c062 colour highlight the failure msg 2024-09-27 17:11:45 +05:30
Kaiwan N Billimoria
14ba073888 better Makefile updt- ignore no .config;add 'dt'
target;add help tip
2024-09-27 15:56:12 +05:30
Kaiwan N Billimoria
11af573d52 TODO comment 2024-09-27 15:55:50 +05:30
Kaiwan N Billimoria
c750a2a97b update Known Errata (RCU) stuff 2024-09-15 08:52:38 +05:30
Kaiwan N Billimoria
a6d3f4d07f fix a leak, better comments 2024-09-15 08:52:18 +05:30
Kaiwan N Billimoria
c7036a9caf export var & continue on include fail 2024-09-15 08:50:33 +05:30
Kaiwan N Billimoria
86c1b29763 Merge pull request #3 from MhmRhm/fix-comment-and-line-width
Improve Makefile template for Linux LKMs
2024-07-29 07:13:12 +05:30
Mohammad Rahimi
31bb78b2c9 Improve Makefile template for Linux LKMs
- Enabled defining FNAME_C via command line.
- Removed a redundant word in the comment for DYNAMIC_DEBUG_MODULE.
2024-07-28 06:11:59 +00:00
Kaiwan N Billimoria
06dd8cdf99 Add Errata for pg 197
Signed-off-by: Kaiwan N Billimoria <kaiwan.billimoria@gmail.com>
2024-07-27 09:41:53 +05:30
Kaiwan N Billimoria
b40aaef5b1 convenient.h: cleanup as per checkpatch report
Signed-off-by: Kaiwan N Billimoria <kaiwan.billimoria@gmail.com>
2024-07-24 13:30:57 +05:30
Kaiwan N Billimoria
e21df88793 SHOW_DELTA() macro works ok only on 64-bit Linux
Signed-off-by: Kaiwan N Billimoria <kaiwan.billimoria@gmail.com>
2024-07-24 11:35:50 +05:30
Kaiwan N Billimoria
afccc07a00 README.md: add a couple of 'errata'
Signed-off-by: Kaiwan N Billimoria <kaiwan.billimoria@gmail.com>
2024-07-17 09:38:33 +05:30
Kaiwan N Billimoria
8f98867884 Add errata; pg 9
Signed-off-by: Kaiwan N Billimoria <kaiwan.billimoria@gmail.com>
2024-05-08 09:52:05 +05:30
Kaiwan N Billimoria
0a96f894b2 Update README.md to reflect the new ch6/countem2.sh script
Signed-off-by: Kaiwan N Billimoria <kaiwan.billimoria@gmail.com>
2024-05-02 08:48:00 +05:30
Kaiwan N Billimoria
b36201bdbc initial commit; an addendum to the countem.sh script
Signed-off-by: Kaiwan N Billimoria <kaiwan.billimoria@gmail.com>
2024-05-02 08:43:53 +05:30
Kaiwan N Billimoria
900771e5aa Add online link for Ch 1 PDF 2024-04-05 13:04:53 +05:30
Kaiwan N Billimoria
8f420ea91f Update README.md; make a phrase bold 2024-03-17 08:05:17 +05:30
Kaiwan N Billimoria
88fbc8fb88 Errata, pages 716 to 722 reg Figure 13.14 2024-03-17 08:03:02 +05:30
Kaiwan N Billimoria
ac37b218a5 Address Issue #1 https://github.com/PacktPublishing/Linux-Kernel-Programming_2E/issues/1 ;
cleanup..
2024-03-07 09:39:52 +05:30
Kaiwan N Billimoria
377b7a3290 README: small fixes 2024-02-28 12:26:19 +05:30
Kaiwan N Billimoria
2bf1d7fe4a Add 'Known Errata' section to the README 2024-02-28 12:26:00 +05:30
AniketS-cpu
5c21f2dc09 Update README.md 2024-02-27 18:46:32 +05:30
Kaiwan N Billimoria
8491d7b26e minor.. 2024-02-27 12:45:18 +05:30
Kaiwan N Billimoria
ee7e76f1bc Merge branch 'main' of https://github.com/PacktPublishing/Linux-Kernel-Programming_2E 2024-02-27 12:43:09 +05:30
Kaiwan N Billimoria
7b8c3b7c2a updt FR 2024-02-27 12:22:06 +05:30
Kaiwan N Billimoria
ebb24f7156 update FR 2024-02-27 11:59:30 +05:30
Kaiwan N Billimoria
0da8b78bc5 Update miscdrv_rdwr_rcu.c with new lat, long coords 2024-02-20 07:47:58 +05:30
Kaiwan N Billimoria
1c8ed6406f Update miscdrv_rdwr_rwlock.c with new lat, long coords 2024-02-20 07:47:11 +05:30
Kaiwan N Billimoria
da9f740c9b Update miscdrv_rdwr_nolocks.c with new lat, long coords 2024-02-20 07:46:02 +05:30
Kaiwan N Billimoria
7c6c279df0 Update percpu_var.c w/ a better comment 2024-02-19 08:35:09 +05:30
Kaiwan N Billimoria
05c6b2853e Updated plot data and graph jpeg 2024-02-14 09:37:27 +05:30
Kaiwan N Billimoria
7a1647f746 better comments 2024-02-14 08:21:34 +05:30
Kaiwan N Billimoria
fa8a844e87 updt FR 2024-02-14 07:58:46 +05:30
Kaiwan N Billimoria
c334603a2c update arm64 KDIR var to match book 2024-02-14 07:58:13 +05:30
Kaiwan N Billimoria
3e9fff4364 check for yes 2024-02-14 07:57:41 +05:30
Kaiwan N Billimoria
fea352ac4c Refactor: get the kernel config file via a function 2024-01-26 19:06:40 +05:30
Kaiwan N Billimoria
4e18793a8e Again, comments.. 2024-01-24 16:10:29 +05:30
Kaiwan N Billimoria
6e54bf1226 Better comments 2024-01-24 10:42:29 +05:30
Kaiwan N Billimoria
aa99e89920 updt better Makefile 2024-01-24 10:41:55 +05:30
Kaiwan N Billimoria
610be81348 For simplicity, simply define a my_snprintf_lkp() wrapper
to avoid 'library' linking (which we later cover)
2024-01-22 11:59:45 +05:30
Kaiwan N Billimoria
5cd39db4fd For simplicity, don't use the snprintf_lkp() wrapper,
simply use snprintf() here
2024-01-22 11:59:08 +05:30
Kaiwan N Billimoria
b4cb4aaa79 Refactor the module builds so that we link into the
klib.c/h files as well (so that we can invoke the
snprintf_lkp() wrapper that's defined therein)
2024-01-22 11:58:00 +05:30
Kaiwan N Billimoria
624c1dc1d1 Move the snprintf_lkp() (and delay_sec()) routines
from the convenient.h hdr to the klib.c (klib.h) 'lib' files
2024-01-22 11:55:11 +05:30
Kaiwan N Billimoria
f67c30bbce for_each_process_thread() is better, from 6.6, than
the older do_each|while_each_thread() macros
2024-01-22 11:53:36 +05:30