Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 12

Choose a topic to test your knowledge and improve your Unix/Lunux skills

1. The directories of /sys directory




2. The directory /sys/block contains




3. In sysfs, each represented bus type has two directories named as




4. A device class describes the ____ type of device.




5. Which one of the following directory contains every physical device that has been discovered by the bus types registered with the kernel?




6. Which type of devices are peripheral devices?




7. Which one of the following is not a system device?




8. Which one of the following is not a platform specific code?




9. In device driver model bus_type object contains the




10. The file fs/sysfs/sysfs.h contains the




11. Sysfs is initialised in ______ file via sysfs_init function.




12. Kernel objects are exported as _____ via sysfs.




13. Sysfs internally stores the pointer to the ____ that implements the directory in the file system.




14. Attributes can be exported for objects in the form of _______ in the file system.




15. In sysfs every subsystem has




16. sysfs is based on




17. Which one of the following is a notification to user space from the kernel that something has changed in the system’s configuration?




18. In the device driver model the device_driver object contains the




19. A ____ is a higher level view of a device that abstracts out low level implementation details/




20. When a device is removed from the system




21. Relationship between components of device driver models are expressed in the sysfs as




22. What is the main role of the regular files in the sysfs?




23. The core data structure of device driver model is




24. The kset contains




25. Which one of the following is a read-write semaphore in linux that protects all ksets and kobjects included in the filesystem?




26. Each device in the device driver model is represented by a _____ object.




27. Each driver in the device driver model is described by a ______ object.




28. The channel between the processor and devices is called?




29. In which directory every kernel module of the system is represented?




30. In sysfs the device drivers of same _____ are expected to provide same functionalities to the user mode application.




31. Which one of the following is not true?




32. In sysfs.h which one of the following structure represents the directory entries?




33. The name pointer of the attribute data structure represents the _____ in sysfs.




34. To read/write attribute, which one of the following method is required?




35. Which one of the following is not contained in the kobject data structure?




36. The kobjects can be organized in a hierarchical tree by means of




37. Which one of the following is a element of a kset data structure?




38. Which one of the following function is used to add the kobject to sysfs?




39. Which one of the following function is used to create a new attribute?




40. Sysfs attribute should export ____ value per file.




41. The major number identifies the _____ associated with the device.




42. The minor number range should be




43. Which one of the following is not true?




44. In linux kernel 2.4, we can have




45. In we use a driver for N number of files, then we have to create ____ device files.




46. If we use a driver for various device files, then




47. The connection between the device file and device driver is based on the




48.  In linux kernel 2.1, the minor numbers were used to




49. The kernel identifies the driver with its




50. In linux, a device driver can work without the