Giter Site home page Giter Site logo

linux-device-model's Introduction

Basic Structure in Linux Device: ldm-basic

  • This Program creates and registers basic dummy bus, driver and device according to Linux Device Model.
  • This module is an external module.
  • Module works on the Kernel 4.19.190

How to clean and build the module

  • The Makefile includes make and clean commands.

clean

  • Run make clean.

build

  • Run make.
  • This command runs make clean before building the target.
  • After completing build you have to see ldm-basic.ko

How to insert the module

  • ldm-basic module has no dependency to any external modules. So insmod command will be enough to insert the module:sudo insmod ldm-basic.ko
  • Then you could check the module installation with lsmod | grep ldm-basic command.
  • You could see relative folders and files under sys directory like that:
    user@linux:/sys/bus$ find -name "ldm_basic_bus"
    ./ldm_basic_bus
    
    user@linux:/sys/devices$ find -name "ldm_basic_device"
    ./ldm_basic_bus/devices/ldm_basic_device
    ./ldm_basic_bus/drivers/ldm_basic_driver/ldm_basic_device
    
    user@linux:/sys/module/ldm_basic$ ls
    coresize  initsize   notes   sections    taint
    holders   initstate  refcnt  srcversion  uevent
    

linux-device-model's People

Contributors

isaceyhunseker avatar

Stargazers

YusufOzben avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.