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

Discussion

A file_operations structure in a Linux driver holds

  • A.the interrupt number the device will use
  • B.pointers to the functions implementing open, read, write and the rest
  • C.the major and minor numbers that the driver has been allocated by the kernel
  • D.the physical addresses of the device's registers

Answer: B

Correct answer: pointers to the functions implementing open, read, write and the rest

The structure is a table of function pointers, and registering it is how a driver tells the kernel which of its routines to call for each system call on the device. Major and minor numbers, interrupts and register addresses are handled by other parts of the registration.

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

Post your comment

Please log in or register to post a comment.