Quiz on chapter-2 of book Linux Device Drivers

Quiz on chapter-2 of book ldd3 body {margin: 10px;} Quiz on chapter-2 of book ldd3 Function passed to module_init is invoked when
Module is loaded into the kernel
Module is removed from the kernel
Module is compiled
Module is deleted from the kernel

The utility used to compile kernel modules is
made
kernel_make
make
gcc

A module can not call functions defined in
libc
kernel
With in the module
Another module

A module always runs in the
Kernel space
User space
User Space and kernel Space
Module space

current returns a pointer to
struct task_struct
struct current
struct task
struct kernel

struct task_struct is defined in
linux/sched.h
linux/current.h
linux/struct.h
linux/task.h

The option -C passed to make causes it to
Compile the module
Change the directory
Create object file
Clean the object file

modporbe not only loads the module passed to it but also
Loads other modules present in the current working directory
Removes any older modules with the same name
Loads other modules on which the given module depends
Restarts the system

command to list the currently loaded modules in the kernel is
listmod
mod
lkmod
lsmod

module compiled for one kernel version can not be loaded into kernel of other version.
True
False
True Sometimes
Depends on the module

Related Posts : Quiz on Chapter-1 of Linux Device Drivers Linux Basics commands quiz


Tags: , ,
Copyright 2017. All rights reserved.

Posted June 18, 2013 by Tux Think in category "Linux