LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-02-2023, 09:25 PM   #16
Cranegsh
Member
 
Registered: Jan 2023
Posts: 42

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by pan64 View Post
Quote:
Originally Posted by dugan View Post
I have a better link for that device drivers book

https://lwn.net/Kernel/LDD3/
I know this book is a very good one to understand Linux device driver. Just wondering, since it is written for Linux kernel 2.x, how much is it still applicable nowadays? As I know, the current Linux kernel provides more interfaces to develop user space driver easier.

Thanks!
Crane

Last edited by Cranegsh; 02-02-2023 at 09:29 PM.
 
Old 03-21-2023, 06:08 AM   #17
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
/dev/shm is a tmpfs for general use

you probably should not mess about with /dev/mem (maybe?)
 
Old 03-21-2023, 06:24 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,778

Rep: Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566Reputation: 7566
Quote:
Originally Posted by Cranegsh View Post
I know this book is a very good one to understand Linux device driver. Just wondering, since it is written for Linux kernel 2.x, how much is it still applicable nowadays? As I know, the current Linux kernel provides more interfaces to develop user space driver easier.

Thanks!
Crane
For now it is enough, you will understand the concept, approach, environment, possibilities and technical details. And you can expand your knowledge later.
 
Old 03-21-2023, 08:38 AM   #19
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,881
Blog Entries: 4

Rep: Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996
Books like these are very good for introducing you to "the essential concepts." But of course, Linux is an ever-changing system.

Therefore, when you get ready to write your driver, you should download the very latest "kernel source-code" for the Linux that you intend to target. Then, very carefully work through the source-code directories of existing drivers.

First of all(!), "look to see if someone else has already done it." If you find that they apparently haven't, select a few drivers that are "closest to" what you now need to build, "carefully tear them apart." (Not literally, of course.)

At this point, begin to engage with the official "kernel" discussion groups. Tell them what you want to do, and exactly why you think that you need to do it. "Then, listen."

Find an existing driver that is "very closest to yours," physically copy it, and then "tweak it here or there." (This is an entirely-routine way to begin: you don't have to "start from scratch.") Use the "git" version-control system to prepare a "pull request." Then, engage with the kernel developers to submit your new driver for their consideration. Very carefully work with them to perfect it. Then, you will join the proud ranks of "official kernel contributors!"

Last edited by sundialsvcs; 03-21-2023 at 08:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
16.04 - Permission denied though I'm sudo and have permission to file insomniacno1 Ubuntu 5 10-22-2020 03:30 AM
[SOLVED] Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) Ztcoracat Debian 5 02-23-2019 10:02 AM
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) Grimm666 Linux - Newbie 3 07-16-2015 02:16 AM
open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied gabsik Linux - Server 6 08-30-2012 09:39 PM
Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied) basina Linux - Laptop and Netbook 3 09-05-2011 05:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration