Linux Sysfs Questions & Answers – 4

DigitalOcean Referral Badge DigitalOcean Referral Badge

1.

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 these

Answer: Option 'C'

symbolic links between files and directories

DigitalOcean Referral Badge

2.

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 these

Answer: Option 'A'

regular files represent the attributes of devices and drivers

DigitalOcean Referral Badge

3.

The core data structure of device driver model is

   A.) kobject
   B.) kfile
   C.) kmodule
   D.) none of these

Answer: Option 'A'

kobject

DigitalOcean Referral Badge

4.

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 these

Answer: Option 'D'

all of these

DigitalOcean Referral Badge
    DigitalOcean Referral Badge DigitalOcean Referral Badge

5.

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 these

Answer: Option 'A'

rwsem

DigitalOcean Referral Badge

6.

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

   A.) driver
   B.) device
   C.) node
   D.) none of these

Answer: Option 'B'

device

DigitalOcean Referral Badge

7.

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

   A.) dev_d
   B.) device_d
   C.) dev_driver
   D.) device_driver

Answer: Option 'D'

device_driver

DigitalOcean Referral Badge

8.

The channel between the processor and devices is called?

   A.) bus
   B.) driver
   C.) class
   D.) none of these

Answer: Option 'A'

bus

DigitalOcean Referral Badge

9.

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

   A.) /sys/kernel
   B.) /sys/module
   C.) /sys/kernel/module
   D.) none of these

Answer: Option 'C'

/sys/kernel/module

DigitalOcean Referral Badge
    DigitalOcean Referral Badge DigitalOcean Referral Badge

10.

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

   A.) class
   B.) kobjects
   C.) ksets
   D.) none of these

Answer: Option 'A'

class

DigitalOcean Referral Badge

Linux Sysfs Questions & Answers – 4 Download Pdf

Recent Posts