Linux Sysfs Questions & Answers – 3

1.

Sysfs is initialised in ______ file via sysfs_init function.

   A.) fs/sysfs/mount.c
   B.) sysfs/mount.c
   C.) fs/mount.c
   D.) none of these

Answer: Option 'A'

fs/sysfs/mount.c

2.

Kernel objects are exported as _____ via sysfs.

   A.) regular files
   B.) symbolic links
   C.) directories
   D.) none of these

Answer: Option 'C'

directories

3.

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

   A.) kobjects
   B.) kstructures
   C.) kinodes
   D.) none of these

Answer: Option 'A'

kobjects

4.

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

   A.) regular files
   B.) directories
   C.) symbolic links
   D.) none of these

Answer: Option 'A'

regular files

5.

In sysfs every subsystem has

   A.) a shared attribute structure
   B.) its own attribute structure
   C.) a shared & own attribute structure
   D.) none of these

Answer: Option 'B'

its own attribute structure

6.

sysfs is based on

   A.) rootfs
   B.) ramfs
   C.) initramfs
   D.) none of these

Answer: Option 'B'

ramfs

7.

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 these

Answer: Option 'A'

hotplug event

8.

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 these

Answer: Option 'D'

all of these

9.

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

   A.) inode
   B.) class
   C.) major number
   D.) minor number

Answer: Option 'B'

class

10.

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 these

Answer: Option 'A'

files and directories of that device in the sysfs are removed automatically
 


Linux Sysfs Questions & Answers – 3 Download Pdf

Recent Posts