⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spd.mod.c

📁 Linux 2.6.24通过SMBUS总线(也类似于i2c总线)读写内存上的SPD信息。里面包含驱动和测试程序。再PC机上反复测试过
💻 C
字号:
#include <linux/module.h>#include <linux/vermagic.h>#include <linux/compiler.h>MODULE_INFO(vermagic, VERMAGIC_STRING);struct module __this_module__attribute__((section(".gnu.linkonce.this_module"))) = { .name = KBUILD_MODNAME, .init = init_module,#ifdef CONFIG_MODULE_UNLOAD .exit = cleanup_module,#endif .arch = MODULE_ARCH_INIT,};static const struct modversion_info ____versions[]__attribute_used____attribute__((section("__versions"))) = {	{ 0x3bf90a01, "struct_module" },	{ 0x6d0da34c, "param_get_short" },	{ 0x2cd9e459, "param_set_short" },	{ 0xeeb1717c, "param_array_get" },	{ 0xab471003, "param_array_set" },	{ 0x12c89235, "i2c_register_driver" },	{ 0xe2c746f6, "class_device_create" },	{ 0x6436a0dd, "class_create" },	{ 0x978f3f87, "cdev_add" },	{ 0x5dcbc20b, "cdev_init" },	{ 0xd8e484f0, "register_chrdev_region" },	{ 0x2da418b5, "copy_to_user" },	{ 0xf2a644fb, "copy_from_user" },	{ 0x2e60bace, "memcpy" },	{ 0xf9a482f9, "msleep" },	{ 0xed64dff, "i2c_clients_command" },	{ 0x35b252e5, "i2c_smbus_write_byte" },	{ 0x170acfe0, "i2c_smbus_read_byte" },	{ 0x14f6e2e5, "i2c_smbus_read_byte_data" },	{ 0x66265cc9, "i2c_attach_client" },	{ 0xf50de226, "__mutex_init" },	{ 0x73e20c1c, "strlcpy" },	{ 0x3148b32f, "kmem_cache_alloc" },	{ 0xf351ef2d, "malloc_sizes" },	{ 0x6f974cbf, "i2c_probe" },	{ 0x5ee5e38a, "i2c_detach_client" },	{ 0x7485e15e, "unregister_chrdev_region" },	{ 0x37a0cba, "kfree" },	{ 0x25d20e15, "cdev_del" },	{ 0x9d17557e, "class_destroy" },	{ 0x52996d9f, "class_device_destroy" },	{ 0x68bf9987, "i2c_del_driver" },	{ 0x1b7d4074, "printk" },};static const char __module_depends[]__attribute_used____attribute__((section(".modinfo"))) ="depends=";MODULE_INFO(srcversion, "5F1327E3861EAD59C25075D");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -