Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 810915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:57:37+00:00 2026-05-15T00:57:37+00:00

If a have a /dev device node and its major/minor numbers how do i

  • 0

If a have a /dev device node and its major/minor numbers how do i know the kernel module name that exported this node?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:57:37+00:00Added an answer on May 15, 2026 at 12:57 am

    Short answer :

    cd /sys/dev/char/major:minor/device/driver/
    ls -al | grep module
    

    Each device is generally associated with a driver, and this is all what the “device model” is about. The sysfs filesystem contains a representation of this devices and their associated driver. Unfortuantely, it seems not all sysfs have a representation of the device nodes, so this applyd only if your /sys directory contains a /dev directory.
    Let’s take an example, with /dev/video0

    On my board, ls -al /dev/video0 output is

    crw-------    1 root     root      81,   0 Jan  1 00:00 video0
    

    So major number is 81 and minor number is 0.
    Let’s dive into sysfs :

    # cd /sys
    # ls
    block     class     devices   fs        module
    bus       dev       firmware  kernel
    

    The sys/dev directory contains entry for the char and block devices of the system :

    # cd dev
    # cd char
    # ls
    10:61  13:64  1:3    1:8    249:0  252:0  29:0   4:65   81:0   89:1
    10:62  1:1    1:5    1:9    250:0  253:0  29:1   5:0    81:2
    10:63  1:11   1:7    248:0  251:0  254:0  4:64   5:1    81:3
    

    What the hell are this links with strange names ?
    Remember the major and minor number, 81 and 0 ?
    Let’s follow this link :

    #cd major:minor (ie 81:0)
    #ls -al
    drwxr-xr-x    2 root     root            0 Jan  1 01:56 .
    drwxr-xr-x    3 root     root            0 Jan  1 01:56 ..
    -r--r--r--    1 root     root         4096 Jan  1 01:56 dev
    lrwxrwxrwx    1 root     root            0 Jan  1 01:56 device -> ../../../vpfe-capture
    -r--r--r--    1 root     root         4096 Jan  1 01:56 index
    -r--r--r--    1 root     root         4096 Jan  1 01:56 name
    lrwxrwxrwx    1 root     root            0 Jan  1 01:56 subsystem -> ../../../../../class/video4linux
    -rw-r--r--    1 root     root         4096 Jan  1 01:56 uevent
    

    Now we can see that this device nod, which is how the device is presented to userspace, is associated with a kernel device. This association is made through a link. If we follow this link, we end up in a directory, with a driver link. The name of the driver is usually the name of the module :

    # ls -al
    drwxr-xr-x    3 root     root            0 Jan  1 01:56 .
    drwxr-xr-x   25 root     root            0 Jan  1 00:00 ..
    lrwxrwxrwx    1 root     root            0 Jan  1 01:56 driver -> ../../../bus/platform/drivers/vpfe-capture
    -r--r--r--    1 root     root         4096 Jan  1 01:56 modalias
    lrwxrwxrwx    1 root     root            0 Jan  1 01:56 subsystem -> ../../../bus/platform
    -rw-r--r--    1 root     root         4096 Jan  1 01:56 uevent
    drwxr-xr-x    3 root     root            0 Jan  1 01:56 video4linux
    

    So here the name of the module is vpfe_capture

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 435k
  • Answers 435k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try the following if TypeOf x Is IFoo Then ... May 15, 2026 at 3:42 pm
  • Editorial Team
    Editorial Team added an answer Try this instead - <script src="Scripts/jquery-1.4.2.js" type="text/javascript"></script> Also, with the… May 15, 2026 at 3:42 pm
  • Editorial Team
    Editorial Team added an answer I discovered when I added day to second it turned… May 15, 2026 at 3:42 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.