⟩ What is the output of the following program? [ -n $HOME ] echo $? [ -z $HOME ] echo $? a) 0 1 b) 1 0 c) 0 0 d) 1 1
a) 0
1
a) 0
1
Each driver in the device driver model is described by a ______ object. a) dev_d b) device_d c) dev_driver d) device_driver
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