Friday, June 8, 2012

Linux Kernel

  • Allocate memory in driver
  • what is IRQ? how will you register your IRQ no? Are you sure you willget the IRQ no you have requested? What if you don't get?
  • Difference bet insmode and modprobe
  • list currently available drivers
  • How to access userspace memory from kernel
  • Where will you place filesystem? above device driver or below it?
  • What is the use of file->private_data in a device driver structure ?
  • What are the two types of devices drivers from VFS point of view ?
  • What is the use of register_chrdev and unregister_chrdev ?
  •  How will you make interrupt handlers as fast as possible ?
  •   What are the types of softirqs ?
  •   Difference between Timer Softirq and Tasklet Softirq ?
  •   What are tasklets ? How are they activated ? when and How are they initialized ?
  •   What is task_struct and how are task states maintained ?
  •    When will you use rwlock instead of spinlock ?
  •   Can spinlock/rwlock be used in Interrupt handler ?
  •   Tell about the Memory Layout of a Process in Linux .
  •   How will you trace the system calls made into the kernel of lInux ?
  •   What is mmap ? MMAP & malloc ? MMAP & brk ? MMAP adv & dis-adv.
  •   Tell the relation between Malloc and MMAP
  •  Advantages of MMAP over Read ?
  •   Tell the role of brk() in malloc / Tell the relation between heap and brk?
  •  Example of using MMAP and MUNMAP in C ?
  •  Tell about the method/steps in Linux Kernel Compilation.
  •  What is Kmalloc and how does it differ from normal malloc ? or Why can't we use malloc in kernel code ?
  •   What happens as soon as a packet arrives from the network in Linux ?
  •  What is a stack frame, stack pointer & frame pointer ?
  •   What is a profiler ?
  •   How do you determine the direction of stack growth ?

No comments:

Post a Comment