lkmpg/examples
linD026 148fb013ee
Avoid unexpected concurrent access (#94)
In file {chardev,chardev2,sleep}.c, the variable to determine
the exclusive access was of integer type, which led to race
condition.

This patch rewrote the above with atomic CAS respectively
to eliminate the race.

Close #93
2021-09-07 23:42:06 +08:00
..
other Enforce consistent style for directory "other" (#89) 2021-09-02 16:26:29 +08:00
.clang-format Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
bottomhalf.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
chardev.c Avoid unexpected concurrent access (#94) 2021-09-07 23:42:06 +08:00
chardev.h Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
chardev2.c Avoid unexpected concurrent access (#94) 2021-09-07 23:42:06 +08:00
completions.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
cryptosha256.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
cryptosk.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
devicemodel.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
example_atomic.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
example_mutex.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
example_rwlock.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
example_spinlock.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
example_tasklet.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
hello-1.c Mention pr_info() rather than KERN_INFO 2021-08-16 21:53:22 +02:00
hello-2.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
hello-3.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
hello-4.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
hello-5.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
hello-sysfs.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
intrpt.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
ioctl.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
kbleds.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
Makefile Enforce consistent style for directory "other" (#89) 2021-09-02 16:26:29 +08:00
print_string.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
procfs1.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
procfs2.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
procfs3.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
procfs4.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
sched.c Enforce Linux kernel coding style (#88) 2021-09-02 15:15:07 +08:00
sleep.c Avoid unexpected concurrent access (#94) 2021-09-07 23:42:06 +08:00
start.c Apply editorial changes 2021-08-08 01:24:59 +08:00
stop.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
syscall.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00