⟩ What is the output of the following program? x = 3; y = 5; z = 10; if [( $x -eq 3 ) -a ( $y -eq 5 -o $z -eq 10 )] then echo $x else echo $y fi a) 1 b) 3 c) 5 d) Error
b) 3
b) 3
Each device in the device driver model is represented by a _____ object. a) driver b) device c) node d) none of the mentioned
Which one of the following is a read-write semaphore in linux that protects all ksets and kobjects included in the filesystem? a) rwsem b) rwsemaphore c) rws d) none of the mentioned
The kset contains a) pointer to subsystem descriptor b) pointer to the kobject type descriptor of the kset c) head of the kobjects included in the kset d) all of the mentioned
The core data structure of device driver model is a) kobject b) kfile c) kmodule d) none of the mentioned
What is the main role of the regular files in the sysfs? a) regular files represent the attributes of devices and drivers b) regular files represent the kernel objects c) regular files represent the kernel sets d) none of the mentioned
Relationship between components of device driver models are expressed in the sysfs as a) a directory b) a regular file c) symbolic links between files and directories d) none of the mentioned
When a device is removed from the system a) files and directories of that device in the sysfs are removed automatically b) all the files of sysfs are preserved until the system turn offs c) it does not create any change in the sysfs d) none of the mentioned
A ____ is a higher level view of a device that abstracts out low level implementation details/ a) inode b) class b) major number d) minor number
In the device driver model the device_driver object contains the a) name of the device driver b) embedded kobjects c) method for probing a device d) all of the mentioned
Which one of the following is a notification to user space from the kernel that something has changed in the system's configuration? a) hotplug event b) module event c) attach event d) none of the mentioned