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

  • SEARCH
  • Home
  • 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 7160027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:19:48+00:00 2026-05-28T13:19:48+00:00

When we build a driver as static along with the kernel, Then I can

  • 0

When we build a driver as static along with the kernel, Then I can understand the flow of driver code from __init to _probe. But when the driver is built as a module and is loaded with insmod when the kernel is already booted, do we still require both functions ?

I mean, wouldn’t only _probe be required when insmod is used ? Wouldn’t the driver probe for the device directly and the device registration code could be done in the _probe itself ?

This is just not clear to me. Maybe my doubt is wrong but help me in clearing this doubt.

  • 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-28T13:19:48+00:00Added an answer on May 28, 2026 at 1:19 pm

    Actually, in both cases (driver in kernel or as a module) both functions (init and probe) are required.

    As you mention it, the probe function is used when there is a device/driver registration (the device/driver kernel subsystem notices that there is a suitable driver for a given device and it “associates” them).

    To simplify, in order to be able to achieve this “associtation”, the kernel’s device/driver subsystem needs a list of the devices on the system and a list of the available drivers (and a way to know if a driver can be “associated” with device, but it’s not important for your question).

    In a typical module, the init function is the function that initializes the driver to kernel, or to phrase it differently, to register the driver to the kernel’s driver/device subsystem so that this new driver can be added to the list of available drivers that can be “associated” with the devices. This also has to be done when the driver is built as a module.

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

Sidebar

Related Questions

I'm trying to make the node-mongodb-native driver from git, but when i try and
I tried to build mongodb c++ 2.0 driver,but got the following error message: security_commands.cpp:(.text+0x865):
I've got Qt build for a CE 6 custom sdk. I can use VS2005
i using Qt 4.7.3 and mysql 5.5 , i need to build a driver
What is simplest way to build the QMYSQL3 driver with the full 4.6 SDK
Open-source urban driving simulator needed to build an automated taxi driver. The dream feature-set
I am trying to build the mvc-showcase example available here link . But i
I am trying to build a simple div based popup which can be used
Please forgive my attempts at necromancy, but I actually need to write some code
The samples and documentation in question can be found here: http://static.springsource.org/spring-flex/docs/1.5.0.M1/ The reference doc

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.