250+ TOP MCQs on Linux Sysfs and Answers

Linux / Unix questions and answers focuses on sysfs. This is set 3.1. Sysfs is initialised in ______ file via sysfs_init function.
a) fs/sysfs/mount.c
b) sysfs/mount.c
c) fs/mount.c
c) none of the mentionedAnswer: a
Clarification: None.

2. Kernel objects are exported as _____ via sysfs.
a) regular files
b) symbolic links
c) directories
d) none of the mentioned

Answer: c
Clarification: None.

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 the mentioned

Answer: a
Clarification: None.

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 the mentioned

Answer: a
Clarification: None.

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 the mentioned

Answer: b
Clarification: None.

6. sysfs is based on
a) rootfs
b) ramfs
c) initramfs
d) none of the mentioned

Answer: b
Clarification: None.

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 the mentioned

Answer: a
Clarification: None.

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 the mentioned

Answer: d
Clarification: None.

9. 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

Answer: b
Clarification: None.

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 the mentioned

Answer: a

Leave a Reply

Your email address will not be published. Required fields are marked *