Commit Graph

43 Commits

Author SHA1 Message Date
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
14ba073888 better Makefile updt- ignore no .config;add 'dt'
target;add help tip
2024-09-27 15:56: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
8491d7b26e minor.. 2024-02-27 12:45:18 +05:30
Kaiwan N Billimoria
7a1647f746 better comments 2024-02-14 08:21:34 +05:30
Kaiwan N Billimoria
c334603a2c update arm64 KDIR var to match book 2024-02-14 07:58:13 +05:30
Kaiwan N Billimoria
4e18793a8e Again, comments.. 2024-01-24 16:10:29 +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
fc348d6386 Merge branch 'main' of https://github.com/PacktPublishing/Linux-Kernel-Programming_2E 2023-12-28 12:34:49 +05:30
Kaiwan N Billimoria
9fc7a22d8b Use our more secure (warn on overflow) snprintf_lkp() macro over snprintf() 2023-12-28 12:34:06 +05:30
Kaiwan N Billimoria
d7ef7a5b75 use new better Makefile 2023-12-28 12:01:32 +05:30
Kaiwan N Billimoria
fc69807884 Merge branch 'main' of https://github.com/PacktPublishing/Linux-Kernel-Programming_2E 2023-12-23 13:17:51 +05:30
Kaiwan N Billimoria
9a66a56069 updt to latest ver of Makefile 2023-12-23 13:17:01 +05:30
Kaiwan N Billimoria
b0e1d58692 Use the snprintf_lkp() wrapper over snprintf() 2023-12-19 16:51:38 +05:30
Kaiwan N Billimoria
9d37d0bf35 minor, fmt 2023-11-02 16:02:08 +05:30
Kaiwan N Billimoria
f00e599f1c updt Makefile 2023-10-16 07:16:43 +05:30
Kaiwan N Billimoria
1f19e8441a updt Makefile 2023-10-16 06:58:48 +05:30
Kaiwan N Billimoria
b11103929e better strip msg 2023-10-16 06:58:38 +05:30
Kaiwan N Billimoria
016867a19c cleanup, add info 2023-10-14 18:29:09 +05:30
Kaiwan N Billimoria
06885d76d8 rm empty line 2023-10-14 10:33:45 +05:30
Kaiwan N Billimoria
21ff5d1cfe Remove the MODNAME macro 2023-10-14 10:05:41 +05:30
Kaiwan N Billimoria
e21e3409dc Add author,desc,license,ver 2023-10-14 09:40:47 +05:30
Kaiwan N Billimoria
3e877b4097 Make strip happen only if MYDEBUG=n and (any) module signing is off 2023-10-13 19:04:09 +05:30
Kaiwan N Billimoria
f69132e2ca Put the FNAME_C var first; show the 'settings' too in 'help' 2023-10-13 18:53:44 +05:30
Kaiwan N Billimoria
5df52fba35 ic - initial commit (fp_in_lkm) 2023-10-12 15:45:18 +05:30
Kaiwan N Billimoria
6bd6951bdc ic 2023-10-11 17:39:59 +05:30
Kaiwan N Billimoria
5aeb9300c9 Ic 2023-10-11 17:24:57 +05:30
Kaiwan N Billimoria
7f2014a56d Initial commit - modstacking PoC 2023-10-11 12:45:33 +05:30
Kaiwan N Billimoria
3e7874de64 bugfix: can't use strlen here 2023-10-10 12:07:14 +05:30
Kaiwan N Billimoria
5e66c04cd9 Use correct kernel src tree path for ARM64 2023-10-10 12:06:52 +05:30
Kaiwan N Billimoria
f2a2aa259b Better string desc for ARMxx 2023-10-10 12:04:56 +05:30
Kaiwan N Billimoria
481ce5e973 ic 2023-10-10 11:47:16 +05:30
Kaiwan N Billimoria
d7352f1ec1 better comment 2023-10-10 11:05:21 +05:30
Kaiwan N Billimoria
998db38f54 better comment 2023-10-10 09:05:05 +05:30
Kaiwan N Billimoria
3193d0406c Fix check for cross compiler 2023-10-09 19:38:53 +05:30
Kaiwan N Billimoria
a3f9cd5e8c validity checks 2023-10-09 19:35:04 +05:30
Kaiwan N Billimoria
ed53d053ae Merge branch 'main' of https://github.com/PacktPublishing/Linux-Kernel-Programming_2E 2023-10-09 19:31:33 +05:30
Kaiwan N Billimoria
a9765ffaba sudo not reqd for local module file strip 2023-10-09 19:30:29 +05:30
Kaiwan N Billimoria
96e3d28d9f ic 2023-10-09 19:18:41 +05:30
Kaiwan N Billimoria
4bd8f224f2 Initial commit - ch5/cross/ 2023-10-09 19:14:38 +05:30
Kaiwan N Billimoria
795a212cc9 Initial commit (ch5/lkm_template) 2023-10-09 12:32:24 +05:30