Q1
Ans is C
as Directory sys/class contains symbolic links and contains a single layer for the for sub-directories for each device class and to store all this space is needed
Q2
Ans is B
Task_struct is a large structure used to contain all necessary data to represent a process and also has data to maintain relationship with other processes .
Q3
Ans is C
In order to read directories entries we use getdents() function as it reads the data and return the number of bytes that he read in directory .ans as a directory contain many entries it reads all so its return many entries
Q4.
Ans is
The module has special declarations for parameters that are initialized by the module loading framework
To pass paramters to module in kernel
1. module_param() macro function is used
2.If you pass the parameters to a module using modprobe, you can set the parameters in /etc/modprobe.conf
3,If you compile the module with the kernel (static), you can provide the parameters using the kernel command line on boot time
Directories in /sys/class (what doesn't belong) contain symbolic links list devices defined by different subsystems of...