Giter Club home page Giter Club logo

linux_device_drivers_tutorial's Introduction

linux_device_drivers_tutorial

Linux Device Drivers Tutorial

Hi, this is a compendium of multiple didactic Linux Kernel modules, I am doing this due to the fact that many times somebody say that the LDD book is too complicated, well here is a series of examples that might be helpful.

In my opinion a really good start for really newbies Linux Modules Developers WAS (past time on purpose) The Linux Kernel Module Programming Guide (http://www.tldp.org/LDP/lkmpg/2.6/html/). However this guide is based on the Kernel 2.6.. which has many deprecated parts in relationship with the 3.~ kernel

Well this project tries to update the source code of that guide to the latest version of the kernel (please update and improve as possible), hopefully if many folks agree the guide will be updated, just as its authors wanted.

SET UP:

Download all the kernel dev packages (in case of Fedora):

https://fedoraproject.org/wiki/Building_a_custom_kernel

You might have some problems with the livna.repo, please temporary remove it

BUILD:

1) make MODULE="<name_of_module>" // DO NOT add the .c, just the name of
the module. If no name is passed the makefile will build the basic hello
world module

2)  make clean : will clean the module

INSTALL:

insmod module.ko
modprobe module.ko

REMOVE:

rmmod module

Check printk message:

dmesg
or
cat /var/log/syslog

linux_device_drivers_tutorial's People

Contributors

victorrodriguez avatar mrjaguar avatar

Watchers

James Cloos avatar Paul Greenberg 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.