Linux Device Driver,Embedded C Interview Questions
Linux Device Driver,Embedded C Interview Questions
C++ questions:
13.What is copy constructor and a default constructor and write a copy constructor and explain
shallow copy with memory diagram.
14.Is it necessary to have const for a reference in copy constructor
15.Explain the stack over flow condition when pass by value is done in copy constructor.
16.Memory layout of a program and explain the different segements when a function call happen.
17. Explain the difference between static variable and local variable
18. what are the different storage classes present and explain the differnces between them.
19.Polymorphism and virtual concepts
20.Why a virtual destructor is needed explain with a scenario what happens when a virtual
destructor is not defined.
21.What is a smart pointer and why it is needed?
22.Difference between smart pointer and auto pointer and write the code for autp ptr
implementation.
23.exception handling in c++
24.what is stack unwinding?
25.Difefrence between vector and list.
26.Templates and function templates.
27.what is operator overloading ? implememt how to overload ++ operator and "insertion"
operator.
28. What is memory leak and memory corruption and explain the scenario for memory leaks and
memory corruption with a sample code.
29.What is factory pattern? why factory pattern is needed?
30.What is builder pattern pattern ? write a sample code for the same.
31.What is a singleton pattern and write the code for the same.
32. How can you retain the values of a local variable without using a static variable.
33.What happens when a function is made inline?
34. why inline functions are needed and in what scenario the inlines are needed?
35..Find the first non repeated value in the array by iterating only once.
Below are the collection of interview questions for positions in Embedded,Linux Device
Drivers,QNX BSP Kernel Programming, C language,System programmer.
**************************************************************************************
Telephonic :nvidia
> What are types of ARM exceptions
//http://osnet.cs.nchu.edu.tw/powpoint/Embedded94_1/Chapter%207%20ARM%20Exceptions.pdf
> What is data aboard,do you know this,which ARM exception does this comes in to.
> How an exception was raised when encountered any mallicious code
linuxdevicedrivercinterviewqs.blogspot.com 1/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
linuxdevicedrivercinterviewqs.blogspot.com 2/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
3rd round:ScanDisk
1.Explain Boot up sequence and project which you worked?
2.Related to memory questions?
4th round:ScanDisk
1.Do you know about the company?
2. 2.What is the use of emmc?
3. 3.How you will proceed to bring up the board?
4. 4.What all things you need when you are bring up the board?
5. 5.How you will bring up the board if we replace the original EMMC with our own EMMC?
6. 6.Do you know about how android will launch?
7. 7.Previous project related questions?
8. 8.How fastboot will work?
9. 9.How you will communicate with kernel if you don’t have access?
10.How you will debug the memory issues?
11.Do you know about flash memory?
12.What is the difference between NAND and NOR?
linuxdevicedrivercinterviewqs.blogspot.com 3/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Round-2
1.What are the projects you worked and breif them
linuxdevicedrivercinterviewqs.blogspot.com 4/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
main()
{
int a= 5;
int *p= &a;
*p++;
p--;
printf("%d %d",*p,a);
}
main()
{
int a= 5;
int *p= &a;
(*p)++;
p--;
printf("%d %d",*p,a);
}
10.
const volatile int *ptr;
*const volatile int ptr;
What is the diff .
11.
which pointer value we can modify.
const volatile int *ptr;
*const volatile int ptr;
19.Debugging techniques.
Round-3
linuxdevicedrivercinterviewqs.blogspot.com 5/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
1.Why are you leaving the company, what are the reasons.
3. Thread locked a resource ,before releasing the resource an Interrupt got triggred ,here interrupt
is also using the same resource.
How will you handle this scenario.
5.Diff b/w Semphore & Mutex /binaru sema & Mutex.Is it possible to use the counting semaphore
for above scenario
linuxdevicedrivercinterviewqs.blogspot.com 6/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Understanding of schematics
linuxdevicedrivercinterviewqs.blogspot.com 7/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Understanding of schematics
linuxdevicedrivercinterviewqs.blogspot.com 8/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
What is deadlock?
how will you verify I2C communication?How will you know if there was a software or hw
problem?
How will you solve memory crash, what steps would you take if a crash occurs?
Diff between mutex and semaphore? Can semaphore be used for data synchronisation
purpose?
Whats the boot loading process from powerup? They wanted a detailed answer to this
asking for detailed explanation for every step?
linuxdevicedrivercinterviewqs.blogspot.com 9/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
HARMAN Automotive :
*************************************************************************************************************
1.What memcopy do? implement your own memcopy function?with optimization(less usage of
variables?)
2. int *i
char *c
void *v
tell me the sizes ?
sizeof(*i)
sizeof(i)
sizeof(*c)
sizeof(c)
sizeof(*v)
sizeof(v)
linuxdevicedrivercinterviewqs.blogspot.com 10/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
linuxdevicedrivercinterviewqs.blogspot.com 11/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
1.How you Decide the stack size for the function or thread.
2.Booting Sequence
3.About JTAG
4.Diff btwn SPI & I2C
5.Memory Layout
6.what is your strength
7.About Disassembly file(Memory map file)
8. About clock & timers
9.About Stack
linuxdevicedrivercinterviewqs.blogspot.com 12/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
*************************************************************************************************************
Ericson:
*************************************************************************************************************
1.A thread is created by processes, how the process comes to know the completion of that
created thread ?
2.In a big array consists of 1's & 0's ,write an efficient programe to keep all 1's to right side and 0's
to other side?
3.Write a programe In a given string find a specific word.
4.Semaphore internal code behavior in a way semaphore implementation ?
5. Topic to look :
1. Inter-process communication
a. Socket programming
b. Named and unnamed pipes
c. Message queues
d. Shared memory, mmap
2. Synchronization mechanisms
a. Mutex and semaphore
b. Spinlocks
c. Synchronization between ISRs and process context threads
3. Debugging using GDB
C Questions
------------
1. Storage classes
2. const and volatile
3. How to allocate memory in c - malloc vs calloc
4. brk, sbrk
5. Any other system call to allocate memory. mmap ; anonymous mapping
6. Memory barriers; Why are they required
7. Wild and dangling pointers
8. struct alignment and packing. Need of alignment
linuxdevicedrivercinterviewqs.blogspot.com 13/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
*************************************************************************************************************
Dover corporation:F2F
1.what is a device driver and write a simple driver
and explain what happens when an insmod is done an module
linuxdevicedrivercinterviewqs.blogspot.com 14/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Shared IRQ :
When a signal is raised on irq line which triggers an exception on processor.
Linux had data structure called interrupt descriptor table which is linked list of irq descriptors
number of descriptors is equal to number of irq lines. Below screen shot shows the irq descriptor
table.
This descriptor had two main pointers handler and action.Handler pointer is to managing a irq
line like enabling , disabling and acknowledge and action pointer is to call the registered function
to be called.
Linux allows single irq line to be shared between multiple devices in such case the action pointer
points to multiple handler functions.Each ISR is called in sequence of the ISR's registered.
Void main()
{
char *str_ptr="MY_STRING";
printf("%s",str_ptr);
}
In processes addres space wehre is string "MY_STRING" stored ?
Ans. string "MY_STRING" stored at read only Text segment and str_ptr stored at data segment.
linuxdevicedrivercinterviewqs.blogspot.com 15/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Malloc Implementation (not Interview FAQ but you can impress interviwer if asked)
http://danluu.com/malloc-tutorial/
(
Very effective and easy to understand (My Pref read this down to the blog you can find very
useful link https://github.com/danluu/malloc-tutorial/blob/master/malloc.c to see simple malloc
code
Read this too
http://duartes.org/gustavo/blog/post/anatomy-of-a-program-in-memory/
)
http://www.inf.udec.cl/~leo/Malloc_tutorial.pdf
https://fossies.org/dox/glibc-2.21/malloc_8c_source.html //glibc malloc source code.
http://moss.cs.iit.edu/cs351/assets/slides-malloc.pdf
linuxdevicedrivercinterviewqs.blogspot.com 16/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
.............................................................................................................................................................
Below Link Explains how a Prob function called (FAQ in device driver interviews)
http://stackoverflow.com/questions/7578582/who-calls-the-probe-of-driver
answer is {1,2,3,4,5}
3.Write your own malloc implementation without using system calls.
Hint:How you will get the heap next free address
4.Reverse the words in given strings.
Ex: I am good boy
answer : boy good am I
linuxdevicedrivercinterviewqs.blogspot.com 17/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Design Part
1. Class diagram for State Machine.
OS Concept
1.Message queues
2.semaphore
Memory Leak Debugging concept. Whats your approach on debugging a core dump.
Memory layout of a process. Stack/Heap/BSS/Data/Code.
implement malloc API.
C++ Programming Concepts . why do we need virtual function? How the performance is affected
by this?)
Concepts of pointer and reference.
1. Write a malloc_alloc() function for an integer, without using heap or any system calls
Int * malloc_alloc(int * 1) Hint: normal integer pointer allocation ; storage can be in data segment
2. Write a pgm to insert an element in a sorted array; check all boundary conditions
3. Implement a state diagram for state change based on events
Hint: use a Table mapping events to state change
4. Memory usage, heap, physical memory, system concepts
5. Data segment/Bss etc
6. Compare the size of the 2 files after compilation.
File1:
int arr1[1000];
Main() {
}
File2:
Int arr2[2000];
Main() {
}
Hint: File size is same
7. Lastly worked project details and design
8. Bit manipulation – To set a bit at a position in a 32 bit integer
.............................................................................................................................................................
linuxdevicedrivercinterviewqs.blogspot.com 18/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
2nd-Round:
1.Create a pointer pointing to integer type point that to char array containing 10 elements?
2.The above created pointer if incremented ++ which element of the array it points to?
3.Write an instruction such that integer pointing sould point to first element of the array on
increment?
4.Will their be any compilation errors while trying to print the below?
int *ptr=NULL;
printf("%d",*ptr);
5.will their be any warning if yes when at compile time or run time?
6.Expalin about your latest project?
7.Explain about shared interrupt and how an correponding
interrupt Handler is called while an interrupt is shared?
.........................................................................................................................................................
Broad com:
1. write a C programe to check given string is palindrome or not.
2.Write a C programe to reverse a string.
3.write a C programme to copy a string to other char pointer
4.write a C programme for any sorting logic.
5.write a C programme to set a particular bit to 1 for given position.
6.write a C programme to set a particular bit to 0 for given position.
7.write a C programme to toggle a particular bit for given position.
8.Volatile keyword
9.Interrupts mechanisam
10.Synchronization techniques(Semaphore/Mutex/Spinlocks)
..........................................................................................................................................................
SmartPlay :
1. write a C programe to set bits from 3 to 7 positions to 1 in a 32-bit given value
Condition is at a time only one bit from 3 to 7 bit positions to be 1 and if not all bits to be
reset.?
2. Determine the minimum stack size required for given prog by end of main function?
Void main()
{
int x,y;
char c;
fun1();//Assuming forward declaration is done.
linuxdevicedrivercinterviewqs.blogspot.com 19/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
void fun1()
{
int a,b,c;
c=a+b;
}
void fun2()
{
char c;
}
void fun3()
{
}
3.what is the internal implementation/mechanism made to work volatile to get the updated
value?
4. Behavior of system call from user level to kernel level.
5.What is software interrupt and hardware interrupt with examples?
6. Spin locks behavior?
7.What is structure padding?How can we eliminate it?
8.If structure padding is efficient why not C language made this as default behaviour?
9.
..........................................................................................................................................................
HCL telephonic:
1.Explain camera sensor project
2.How frame buffers are allocated in camera sensor project
3.how to debug your driver if u had any buffer issues
4.Do u know about V4L2 layer
5.Have u faced any page faults in driver and how u will solve that issue?
6.How the data is transferred from camera sensor to LCD display
7.Do u know about IOCTL operations? and have they been used in your camera sensor project.
linuxdevicedrivercinterviewqs.blogspot.com 20/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
..........................................................................................................................................................
->Storage classes
->Where static and global data members stored?
->What is shared lib and static library?
->How can two slaves can communicate with master in i2c protocol at a time?
->How can we address different devices from same vendor i2c?
->Structure padding?
->Difference between #define and CONST, which one will you chose in programming?
->Debugging techniques?
->Volatile keyword?
->Top half and bottom half interrupt approach?
->Inter process communication techniques?
->Threads, Fork and clone?
..................................................................................................................................................................
Global edge:
1.Explain camera sensor driver project
2.where the camera driver resided in kernel
3.Know about VL42
4.I2C protocl
5.I2C- dummy write,repeated start,arbitration,synchronization between masters
6.Lm475 temeprature driver project
7.storage classes in C
8.Questions on static,diff b/n static and extern
9.can we assign pointer to a static variable?
10.can we assign pointer to a register variable
..................................................................................................................................................................
HCL:
1.How to give memory of 250Mb to kernel (high zone memory)
linuxdevicedrivercinterviewqs.blogspot.com 21/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
linuxdevicedrivercinterviewqs.blogspot.com 22/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Second round:
1.What are the design issues/considerations that was taken care for your camera project.
2.Expalin about the S3C2440 processor architecture
allegion interview F2F qs
1.why size of data types is restricted?
2.why volatile and why it cant be used to all variables
3.difference b/w macro and a constant variable
4.I2c protocol and diff b/w i2c and spi
5.what is i2c bus error
6.how to synchronize devices which operates at different frequencies
7.explain how an interrupt of hardware device is handled
8.explain embedded system architecture (von neumann and harvard architecture)
9.s3c2440 board architecture
10.make file creation and it rules and how it works to create .objs
11.Build process of C program (preprocessing, compilation,linking etc)
12.Questions on Wifi-- related to networking
..................................................................................................................................................................
Broadcom//Face to face.
1. WAP to toggle the given range of bits for a given number(with out using loops)?
2.How C programme memory address space is allocated?
(stack,heap ,data segment,code segment
given few functions in a programme and asked to tell which all variables goes to which sections in
programme memory adress space)
3.How can you make a header file not to include multiple times?
4.Q's on #ifdef,#ifndef
5.where are static variable get stored in programme adress space?(in stack/heap/data segment)
6.if we print the adress of local variable which adress it would print?
7.What all the data memebers stored on data segmet?
8.Volatile use case?volaitile is qualifier or not?
linuxdevicedrivercinterviewqs.blogspot.com 23/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
..................................................................................................................................................................
Broadcom://Telephonic
1. Brief about yourself?
linuxdevicedrivercinterviewqs.blogspot.com 24/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
linuxdevicedrivercinterviewqs.blogspot.com 25/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
..................................................................................................................................................................
Tata Elexsi:
->Storage classes
->Where static and global data members stored?
->What is shared lib and static library?
->How can two slaves can communicate with master in i2c protocol at a time?
->How can we address different devices from same vendor i2c?
->Structure padding?
->Difference between #define and CONST, which one will you chose in programming?
->Debugging techniques?
->Volatile keyword?
->Top half and bottom half interrupt approach?
->Inter process communication techniques?
->Threads, Fork and clone?
->
..................................................................................................................................................................
Global Logic:
->Device driver projects
->write a efficient programme to set a particular bit in a givne number?
->Difference between typedef and #define?
->Callback functions?
->Intterupt top half and bottom half?
->USb driver project?
->
..................................................................................................................................................................
General:
Sizeof operator without using sizeof operator?
Search the middle element in a given list?
Ethernet driver how a packet get transferred in Ethernet drivers?
linuxdevicedrivercinterviewqs.blogspot.com 26/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
WIPRO:
->How Memory Management works in KERNEL?(In total about Kernel Memory management)
->Inter Process communication techniques?
->Spin locks working?
->Favorite topics in kernel?
->Tell about interrupts handling in kernel?
->When a interrupt is handled whether that specific interrupt is disabled or not? If disabled why ?
if not disabled why not disabled?
->When a interrupt is handled tell whether all interrupts are disabled or not ?if yes why ?if no
why?
->As device driver developer when you will you disable or enable particular interrupt or all
interrupts>
->What is the functionality of save_interrupts?
->what is the first function called when interrupt is handled?
->Have you heard about “Handle_interrupt” ?
->What are the possible ways that memory leaks can happen in a programme ?(Apart from
allocation and not freeing )
-> How a memory leak can happen in a linked list?
->How a Reception of packet performed in a Ethernet device driver? (Explain from starting to
reception of packet)
->How can you rate yourself in KERNEL?
..................................................................................................................................................................
HARMAN
General Q's:
->What are types of function(Callback,Recursion ....)?
->what is advantage and disadvantages of each function type?
->Implementation example for each function type?
linuxdevicedrivercinterviewqs.blogspot.com 27/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
->What are different searching algos expalin each one ,implement any one?
->link for programmes of palidrome ,fibonaci,searching etc.
http://study-for-exam.blogspot.in/search/label/C%20programming#.VHUuByWoLFY
..................................................................................................................................................................
WIPRO:
->How Memory Management works in KERNEL?(In total about Kernel Memory management)
->Inter Process communication techniques?
->Spin locks working?
->Favorite topics in kernel?
->Tell about interrupts handling in kernel?
->When a interrupt is handled whether that specific interrupt is disabled or not? If disabled why ?
if not disabled why not disabled?
->When a interrupt is handled tell whether all interrupts are disabled or not ?if yes why ?if no
why?
->As device driver developer when you will you disable or enable particular interrupt or all
interrupts>
->What is the functionality of save_interrupts?
->what is the first function called when interrupt is handled?
->Have you heard about “Handle_interrupt” ?
->What is Memory Leak?
->What are the possible ways that memory leaks can happen in a programme ?(Apart from
allocation and not freeing )
-> How a memory leak can happen in a linked list?
->How a Reception of packet performed in a Ethernet device driver? (Explain from starting to
reception of packet)
->How can you rate yourself in KERNEL?
->Points you will inquiry when a driver from one platform to be ported to another platform?
->How do you do debug?
->Have analyzed kernel panic code dump(what all data it dumps and what do you understand
from it)
->What are storage classes available ?what are the scenarios the specific storage class is used?
->Are you comfortable with pointers, linked list and Queues?
->What is memory mapping ?How kernel knows to which memory location the devices are
mapped?
->
..................................................................................................................................................................
HARMAN
->How can you avoid accessing of an array beyond its limits?
->Whether an exception or normal operation when an array is accessed beyond its limits?
..................................................................................................................................................................
Aricent :
1.What is Function Pointer?
2.What is Call back function?
linuxdevicedrivercinterviewqs.blogspot.com 28/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Wipro/ERRICSON:
1.What is the difference between Linux and RTOS ?and Reason why linux is not Real time?
2.How User space buffer can be accessed from kernel level and viceversa?
3.How to debug different threads in GDB?
4.Comfort level in Assembly level language?
5.What are the kernel structures and which kernel structure used in device driver development?
6.What is interrupt nesting, How IRQ priority handled?
7.What is SERDES?
8.How do you pass data between kernel modules?
9.What are different embedded design patters?
10. Memmory Mapping, synchronization Techiniques , Interrupts , Mutes ,
Interprocess_communication?
..................................................................................................................................................................
Ericsson :
1.Explain about any Device Driver project your good at?
2.Can call back functions or Recursive call can be made in asynchronous events?
3.What is stack overflow?
4.Difference between processes and Threads?
5. How can you corrupt STACK?
6.What are the issues faced while developing driver projects?
linuxdevicedrivercinterviewqs.blogspot.com 29/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
..................................................................................................................................................................
UTC Aerospace:
1.Storage classes in C
2.What is pointer
3.What is volatile
4.What is Structure
5.What is Class in C++
6.Difference between structure and class
7.What is Partition on DO-178B document?
8.What is Real time system
9.What are types of real time systems
10.what happens in Real time system if specific task in not executed at specified time?
11.What is Dead code and Deactivated code and diff b/w them?
12.Level of software as per DO-178B?
..................................................................................................................................................................
Aricent:
1.Explain about USB device Dreiver?
2.Explain about I2C Driver?
3.How USB driver is registration mechanisam?
4.How to pass a two dimentional array to other fucntion?
5.Syntax of main with arguments?
..................................................................................................................................................................
Global Edge:
C:
1.Difference between string and string literal
2.compilation steps of a C programme
3.Memmory allocation of a c programme
4.Why uninitialized data is placed in uninitialized data segment?
..................................................................................................................................................................
synapse-da
Device Drivers
linuxdevicedrivercinterviewqs.blogspot.com 30/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Camera Project
When Kernal had a previlage to write to any memory location then why do we need copy_to_user
and copy_from_user functions.
..................................................................................................................................................................
C:
Volatile
..................................................................................................................................................................
HARMAN:
1.How to create buffers in Kernel?
linuxdevicedrivercinterviewqs.blogspot.com 31/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
Volatile keyword tells the compiler that variable can be modified from outside source without the
action of the code the compiler finds nearby.
Volatile int a,
Int volatile b,
Register variable
Endianness determination
..................................................................................................................................................................
Mettasoft--Graphite semi
1.What happens when insomd is performed?
2.How system call is executed?
3.What all stpes involved while a C programme .exe is created?
4.How can you make part of driver code is allowed to be executed and not executed depending
upon condition?
5.How Intrrupts are executed?.
6.Different synchronization techniquies ?how do you chose the best sync mechanisam fits the
linuxdevicedrivercinterviewqs.blogspot.com 32/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
scenario?
7.What are all the Kernel APIs used in you driver programming?
8.In a given list of elements how to find the middle element?
condition no count is available
condition not known how many elements present
9.How the data integrity check is done in case of network packets or I2c driver communication?
10.How a packet is sent in ethernet driver?
..................................................................................................................................................................
Consultancy:
1. A = 10000000000
B = 0110
i=2
j= 6
o/p =10000001100??
8. Do_irq?
12. how to divided critical work and non critcal work based on top half and bottom Half
13.int arr[]{9,9,9}
o/p = {1,1,1,0}
..................................................................................................................................................................
linuxdevicedrivercinterviewqs.blogspot.com 33/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
What is system call? How to check what are the system calls used?
What is linux kernel module programming?
What is boot loader?
What ioctl?
How to write own module?
Programming questions:
Printing * in triangle shape , input is number lines to print
*
***
*****
Delete a node in the linked list and the node to be deleted is the one that is passed to the
function, no head reference is given
String is recursive or not, s1 = “abcd” , s2 is the user input – s2 can be cdab, dbca
..................................................................................................................................................................
SONY india questions
1. How to speed up the memcpy, have you seen memcpy code in kernel ?
2. How to build the vmlinux image
3. How to debug crash, what is the first line you see when you see a crash/oops message,
explain crash console
4. How Ethernet device is registered
5. Have you checked linux lib code
6. How to debug kernel code
7. What is x86 and what are the registers used
8. How to write a makefile to build a customized kernel
9. More questions on debug and crash point related
10. Struct test { int a; int b; }; Assume you don’t know the contents of structure, and you have
the base address of test strucuture alone, how to do access the data inside it ??
11. How to register, allocate NIC.
12. How does system call works, in detail.
13. ARM or x86 archiecture
14. Step by step of writing a device driver structure, lot of cross questions, not a straight forward
question
15. /proc file system, how to create it
16. ARM
17. In-depth of the projects worked so far…
http://linuxinterviewpreperation.blogspot.in/2013/01/linux-kernel-and-device-drivers.html
..................................................................................................................................................................
linuxdevicedrivercinterviewqs.blogspot.com 34/35
09/02/2020 Linux Device Driver,Embedded C Interview Questions
References:
1. Steps involved in creating a C programme executable
http://www.thegeekstuff.com/2011/10/c-program-to-an-executable/
linuxdevicedrivercinterviewqs.blogspot.com 35/35