Machine-translated by Google. Questions are authored in English.
Top

Discussion

The probe function of a platform driver is called when

  • A.a device matching the driver is found
  • B.the module is first loaded into the kernel
  • C.the device node is opened by a process
  • D.the system is shut down and the driver unloaded

Answer: A

Matching happens by compatible string from the device tree or by name, and the probe then maps the registers, requests the interrupt and registers the device with its subsystem. The remove function undoes exactly those steps in reverse.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.