Eldd Mock
Eldd Mock
Eldd Mock
4. Which of the following low level functions are not used to access the device?
Answers
1. inb(), inw(), inl()
2. outb(), outw(), outl()
3. outb_p(), inb_p()
4. All of the above
5. None of the above (answer)
2. Which of the following verifies that user space buffer can be read/write in
kernel space code?
Answers
1. copy_from_user()
2. copy_to_user()
3. access_ok()--A
4. None of these
9. All the details about the module like author, version etc can be viewed by using
utility
Answers
1. lsmod
2. modprobe
3. dmesg
4. modinfo--A
10. which function is used to allocated memory for buffer of the USB.
Answers
1. usb_alloc_buffer()
2. usb_buffer_alloc()--A
3. usb_alloc()
4. usb_alloc_urb()
13. which macro is used to add kernel module functions to kernel symbol table?
select one:
Answers
1. MODULE_EXPORT()
2. EXPORT_SYMBOL()--A
3. EXPORT_KERNEL()
4. EXPORT_FUNCTION()
14. "kernel is tained" message will be produced when the module is inserted
without____________
Answers
1. MODULE_LICENSE--A
2. MODULE_AUTHOR
3. MODULE_VERSION
4. MODULE_DESCRIPTION
15. In the device driver model the device_driver object contains the
Answers
1. name of the device driver
2. embedded kobjects
3. method for probing a device
4. all of the mentioned--A
18. which of the following function is use to wake up a task from wait queue in
case of spinlock?
Answers
1. wake_up(&wq)
2. wake_up_interruptible--A
3. wake_spinlock(&wq)
4. none of the above
20. The function which is used to allocate and initialize a character device
Answers
1. int register_chrdev_region();--A
2. void chdev_init();
3. int unregister_chrdev_region();
4. int register_chrdev();
24. In a module if its license is not explicitly specified its default license
would be
Answers
1. GPL--A
2. GPLV2
3. Dual BSD/GPL
4. Proprietary
26. which of the following bottom half mechanism can sleep or can be scheduled?
Answers
1. softirq
2. tasklet
3. work queue--A
4. None of the above
27. Which of the following functions is used for I/O port allocation?
Answers
1. request_region();--A
2. check_region();
3. register_io_region();
4. alloc_io_region();
28. In which method of a character driver should the functions 'cdev_init' and
'cdev_add' be called? Choose the most appropriate answer?
Answers
1. module init function and module open function respectively
2. both in module init function--A
3. both in open function
4. none of the above
29. The loglevel strings in printk are defined in the header file
Answers
1. <linux/module.h>
2. <linux/init.h>
3. <linux/kernel.h>--A
4. <linux/fs.h>
33. The device number which is of 32 bit and consist of _________ bits for major
and _______ bits for minor.
Answers
1. 21, 11
2. 11, 21
3. 20, 12
4. 12, 20--A