ldd3
ldd3 copied to clipboard
Linux Device Drivers 3 examples updated to work in recent kernels
I have just deployed a Debian 11 VM to start working through the LDD3 book. I followed the instructions on the readme page of this project and encountered some build...
The lock is missing to release at **Line 143**. Should it be a bug? https://github.com/martinezjavier/ldd3/blob/dd5c9c77a772a03c6e52adf6908bce0882e59b55/snull/snull.c#L139-L150
I tried running these examples in two different ARM aarch64 kernels, but I got the same error after running the main Makefile. I built only the `misc-modules` dir with the...
make for n in misc-progs misc-modules skull scull scullc scullp lddbus sculld scullv shortprint simple tty pci usb sbull snull short; do make -C $n || exit 1; done make[1]:...
This issue occurs in ubuntu 18.04 and 20.04
sbull.c fails to compile due to missing reference to blk_alloc_queue: ``` make[2]: Entering directory '/home/whanlon/kernelbuild/linux-5.14.9' CC [M] /home/whanlon/LinuxDeviceDrivers/examples/ldd3/sbull/sbull.o /home/whanlon/LinuxDeviceDrivers/examples/ldd3/sbull/sbull.c: In function 'blk_generic_alloc_queue': /home/whanlon/LinuxDeviceDrivers/examples/ldd3/sbull/sbull.c:110:17: error: implicit declaration of function 'blk_alloc_queue'; did...
Was trying to `make` from directory `ldd3`. However, I got the following errors: `In function ‘jit_fn_open’: /home/meraj_hasan/ldd3/misc-modules/jit.c:96:40: error: implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration] 96 |...
``` uyplayer@UYPLAYER-PC:~/linux/ldd3$ make for n in misc-progs misc-modules skull scull scullc scullp lddbus sculld scullv shortprint simple tty pci usb sbull snull short; do make -C $n || exit 1;...
In **tiny_tty.c**: `alloc_tty_driver()` and `put_tty_driver()` has been deleted in Linux 5.15. See https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=56ec5880a28eae0f508e88e9e80d2e82a471c9be and https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9f90a4ddef4e4d3aa4229f6b117d4e57231457b3 `const struct tty_operations::set_ktermios(struct tty_struct *, struct ktermios *)` ==> `const struct tty_operations::set_ktermios(struct tty_struct *, const...
- Fix `iowrite*` in `silly.c` to match the target size. - Fix missing const qualifier in `tiny_set_termios`. - Try to fix some other compile errors caused by the tty driver...