Platform Devices and Drivers Before understanding platform devices and drivers, let’s understand the need which resulted in the introduction of the concept of platform devices and drivers. Linux Kernel introduced the concept of Linux Device model in kernel 2.6 release. According to Linux Device model, all the devices in the …
Linux device driver interview questions , Linux kernel development interview questions, Embedded software development interview questions, OS development interview questions , RTOS development interview questions all of these are grouped together under a single roof. This article list out almost all variety of linux device driver interview questions.These LDD questions …
In this chapter we will be discussing about different ways of allocating memory in c language. C provide us the flexibility to allocate memory dynamically at run time in case we are not sure of size of memory required at the time of compilation of program. C provides various functions …
There might be scenario when we know that that member of structure will take very short range of values and for storing that values we don’t need full memory allocated for that variable. example:- struct test { int male_allowed; int female_allowed; }; in the above structure we have two member male_allowed and female_allowed. …
Enumeration gives us power to create our own data type in C. Also define what values the variable of this data type can take. By using enumeration we can simplify our programming code which helps us in maintaining code and reduce programming error. In term of technical words, we can say …
Union is also a data structure just like structure which can store multiple variables of different type. But only difference is that in case of union memory is allocated only for the largest data member and shared by other data member also. It means same memory is shared by all the variables …
Structure provide us a convenient way of having a single name which refers to group of related values. Structure provides us a way of storing different variable of different type under a same name. So we can say structure is heterogeneous collection of data . structure is used to hold …
In this chapter we will discuss different storage classes available in C. After this chapter you will be have understanding of different storage class available and the use of different storage classes. Storage class in c defines the scope of variable or we can say the lifetime of a variable …
In c programming array of characters is called string which is always terminated by null character (/0). example:- “tutorials daddy” here “tutorials daddy” is a string . Whenever compiler encounters with any string , it appends null character at the end of string. memory representation of string:- strings are …
Array of array is called multi dimensional array. general syntax of declaring multidimensional array as follow data_type array_name[size1][size2]..[sizeN]. for example :- int A[3][2]; here a is an array of two dimension. To understand multidimensional array in simple way we can think of this way. above array A is a two …