]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
gpio
authorseantywork <seantywork@gmail.com>
Tue, 27 May 2025 12:55:43 +0000 (13:55 +0100)
committerseantywork <seantywork@gmail.com>
Tue, 27 May 2025 12:55:43 +0000 (13:55 +0100)
ksock-gpio/2506-04.xyz.md [new file with mode: 0644]
ksock-gpio/Makefile [new file with mode: 0644]
ksock-gpio/ksock_gpio.c [new file with mode: 0644]

diff --git a/ksock-gpio/2506-04.xyz.md b/ksock-gpio/2506-04.xyz.md
new file mode 100644 (file)
index 0000000..4287ca8
--- /dev/null
@@ -0,0 +1 @@
+#
\ No newline at end of file
diff --git a/ksock-gpio/Makefile b/ksock-gpio/Makefile
new file mode 100644 (file)
index 0000000..4b0458b
--- /dev/null
@@ -0,0 +1,6 @@
+obj-m := ksock_gpio.o
+
+all:
+       make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
+clean:
+       make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean
\ No newline at end of file
diff --git a/ksock-gpio/ksock_gpio.c b/ksock-gpio/ksock_gpio.c
new file mode 100644 (file)
index 0000000..71108c4
--- /dev/null
@@ -0,0 +1,23 @@
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/netfilter.h>
+#include <linux/netfilter_ipv4.h>
+#include <linux/ip.h>
+#include <linux/tcp.h>
+#include <linux/udp.h>
+#include <linux/string.h>
+
+static int __init ksock_gpio_init(void) {
+
+       return 0;
+}
+
+static void __exit ksock_gpio_exit(void) {
+
+}
+
+module_init(ksock_gpio_init);
+module_exit(ksock_gpio_exit);
+
+MODULE_LICENSE("GPL");
\ No newline at end of file