From 5e993f63cd04f94bf3a7d2d1e8140644df5db56b Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Fri, 05 Apr 2024 14:40:59 +0800 Subject: [PATCH] Build:IGKBoard-All: Update gitignore file --- drivers/igkboard-imx6ull/user/hello.c | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/drivers/igkboard-imx6ull/user/hello.c b/drivers/igkboard-imx6ull/user/hello.c new file mode 100644 index 0000000..49acb63 --- /dev/null +++ b/drivers/igkboard-imx6ull/user/hello.c @@ -0,0 +1,35 @@ +/********************************************************************************* + * Copyright: (C) 2021 LingYun IoT System Studio <www.weike-iot.com> + * All rights reserved. + * + * Filename: hello.c + * Description: This file is the linux kernel sample hello module + * + * Version: 1.0.0(18/12/2021~) + * Author: Guo Wenxue <guowenxue@gmail.com> + * ChangeLog: 1, Release initial version on "18/12/2021 10:50:26 AM" + * + ********************************************************************************/ + +#include <linux/init.h> +#include <linux/module.h> +#include <linux/kernel.h> + +static __init int hello_init(void) +{ + printk(KERN_ALERT "Hello, LingYun IoT System Studio!\n"); + return 0; +} + +static __exit void hello_exit(void) +{ + printk(KERN_ALERT "Goodbye, I have found a good job!\n"); +} + +module_init(hello_init); +module_exit(hello_exit); + +MODULE_AUTHOR("GuoWenxue <guowenxue@gmail.com>"); +MODULE_DESCRIPTION("Linux Kernel hello module"); +MODULE_LICENSE("Dual BSD/GPL"); +MODULE_INFO(intree, "Y"); -- Gitblit v1.9.1