Commit 58136c35 authored by Evangelia Gousiou's avatar Evangelia Gousiou

further folders restructure

parent b3989149
#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[]
__used
__attribute__((section("__versions"))) = {
{ 0x35ec255d, "module_layout" },
{ 0x985f683d, "usb_deregister" },
{ 0x7485e15e, "unregister_chrdev_region" },
{ 0x4f99f09f, "usb_register_driver" },
{ 0x29537c9e, "alloc_chrdev_region" },
{ 0x95aaa356, "usb_reset_configuration" },
{ 0xd0d8621b, "strlen" },
{ 0x91715312, "sprintf" },
{ 0x2f287f0d, "copy_to_user" },
{ 0x362ef408, "_copy_from_user" },
{ 0x89b5c527, "usb_bulk_msg" },
{ 0x64d0da33, "usb_control_msg" },
{ 0x93d085b2, "dev_set_drvdata" },
{ 0xebd5feb1, "cdev_add" },
{ 0xb2c831b6, "cdev_init" },
{ 0x50eedeb8, "printk" },
{ 0x41ad0272, "kmem_cache_alloc_trace" },
{ 0xcea0a119, "kmalloc_caches" },
{ 0x15ff4409, "usb_get_dev" },
{ 0x2f35ab80, "cdev_del" },
{ 0xddffa24, "dev_get_drvdata" },
{ 0x37a0cba, "kfree" },
{ 0xb4390f9a, "mcount" },
};
static const char __module_depends[]
__used
__attribute__((section(".modinfo"))) =
"depends=";
MODULE_INFO(srcversion, "F441DD0E780FE4FB5D2A150");
#!/bin/bash
module="usbtmc"
# Remove module from kernel (just in case it is still running)
/sbin/rmmod $module 2> /dev/null
# Install module
#/sbin/insmod /home/user/pts_fmcfd/pts/usbdriver/$module.ko
/sbin/insmod /home/user/fmc-tdc-1ns-5cha-tst/usbdriver/$module.ko 2> /dev/null
# Find major number used
major=$(cat /proc/devices | grep USBTMCCHR | awk '{print $1}')
#echo Using major number $major
# Remove old device files
rm -f /dev/${module}[0-9]
# Ceate new device files
mknod /dev/${module}0 c $major 0
mknod /dev/${module}1 c $major 1
mknod /dev/${module}2 c $major 2
mknod /dev/${module}3 c $major 3
mknod /dev/${module}4 c $major 4
mknod /dev/${module}5 c $major 5
mknod /dev/${module}6 c $major 6
mknod /dev/${module}7 c $major 7
mknod /dev/${module}8 c $major 8
mknod /dev/${module}9 c $major 9
# Change access mode
chmod 666 /dev/${module}0
chmod 666 /dev/${module}1
chmod 666 /dev/${module}2
chmod 666 /dev/${module}3
chmod 666 /dev/${module}4
chmod 666 /dev/${module}5
chmod 666 /dev/${module}6
chmod 666 /dev/${module}7
chmod 666 /dev/${module}8
chmod 666 /dev/${module}9
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment