Giter Site home page Giter Site logo

hawxchen / linux-kernel-driver-programming Goto Github PK

View Code? Open in Web Editor NEW
54.0 6.0 16.0 1.54 MB

Implementation of PCI drivers, kprobe, sysfs, devfs, sensor driver, miscdevices, synchronization

Makefile 3.69% C 91.66% Shell 4.29% C++ 0.36%
linux-kernel-module linux-kernel linux-kernel-driver linux-drivers linux-driver synchronization debugger debugging barrier concurrent-programming

linux-kernel-driver-programming's Introduction

I implement these Linux Kernel/Driver programs independently.

  • 01_mprobe_and_generanl_driver:

    • A kernel module uses hashtable and synchronization
    • A mprobe module can debug the previous kernel module.
    • Both parts have testing programs and README.
  • 02_Concurrent_HC-SR04_miscdeivces:

    • Two HC-SR04 driver instances registered through miscdevice are equipped with two modes of one-shot and periodical sampling. This kernel module can operate two HC-SR04 sensors in the same time.
  • 03_Concurrent_HC-SR04_SYSFS_Platform_Drivers:

    • This part exports HC-SR04 module to the SYSFS interface as well as Linux Platform Driver interface within PCI mechnaisms.
  • 04_barrier_driver_module:

    • I implemented the Barrier through kernel driver module. This module should be used through open/read/write/close POSIX intferface.
  • 05_barrier_system_call:

    • I implemented the Barrier through three system calls.
    • barrier_init(int count, unsigned int* barrier_id)
    • barrier_wait(int barrier_id)
    • barrier_destroy(int barrier_id)
    • For efficient development and quick debugging, I also provide a driver module (04_barrier_driver_module) in same logic of this synchronzation.
    • For system call and driver module, I also support testing programs.

linux-kernel-driver-programming's People

Contributors

amitrane2092 avatar hawxchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.