Tuesday, November 29, 2011
4:30 PM

Linux Kernel Programming Quiz

Linux Kernel Quiz

Linux Kernel Quiz

This is a quiz on basics of linux kernel programming.
  1. The fuction in the module that gets called on insmod is

  2. open
    read
    init
    write

  3. Which structure holds the pointer to file_operations structure

  4. file
    task_struct
    file_operations
    None of the above

  5. The default size of the entries on /proc are

  6. Zero
    4KB
    Depends on the entry
    Depends on Kernel

  7. In a device driver dev_t data type represents

  8. The magic number
    Only The mjor number
    Combination of Major and minor number
    Only the minor number

  9. The file Module.symvers, generated when compiling an external module holds

  10. The symbols exported by the module
    The symbols exported by the kernel
    All the symbols present in the module
    The list of symbols not used by the module

  11. modprobe refers to which file to find out the dependencies

  12. modules.dep
    modules.order
    dep.module
    modules.symbols

  13. modules.dep is generated by which command

  14. depmpod
    insmod
    modproe
    rmmod

  15. The character and block devices are listed in which folder

  16. /media
    /dev
    /devices
    /char and /block

  17. Functions in kernel generally

  18. Return negative number to signal error
    Retrun 1 to signal successful execution of function.
    Retrun 0 to signal error
    Return negative number to signal successful execution of the function.

  19. which command gives information about a module

  20. infomod
    modinfo
    moduleinfo
    moddata

0 comments:

Post a Comment