mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
mmap: move doc to README
This commit is contained in:
@@ -18,8 +18,6 @@
|
||||
.. Module dependencies
|
||||
... link:dep.c[]
|
||||
... link:dep2.c[]
|
||||
. Pseudo filesystems
|
||||
.. link:mmap.c[]
|
||||
. Asynchronous
|
||||
.. link:irq.c[]
|
||||
.. link:schedule.c[]
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
/*
|
||||
Remember: mmap, like most fops, does not work with debugfs as of 4.9! https://patchwork.kernel.org/patch/9252557/
|
||||
|
||||
Adapted from:
|
||||
https://coherentmusings.wordpress.com/2014/06/10/implementing-mmap-for-transferring-data-from-user-space-to-kernel-space/
|
||||
|
||||
Related:
|
||||
|
||||
- https://stackoverflow.com/questions/10760479/mmap-kernel-buffer-to-user-space/10770582#10770582
|
||||
- https://stackoverflow.com/questions/1623008/allocating-memory-for-user-space-from-kernel-thread
|
||||
- https://stackoverflow.com/questions/6967933/mmap-mapping-in-user-space-a-kernel-buffer-allocated-with-kmalloc
|
||||
- https://github.com/jeremytrimble/ezdma
|
||||
- https://github.com/simonjhall/dma
|
||||
- https://github.com/ikwzm/udmabuf
|
||||
*/
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#kthreads */
|
||||
|
||||
#include <linux/fs.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
Reference in New Issue
Block a user