EmbLogic's Blog

Author Archives: Kuldeep Dhanotia

Macros and function………………..

what is the conceptual difference between macros and function…………???

Posted in Data Structures with C | 1 Comment

structure………..

why we can not compare two variables of same structure type????

Posted in Data Structures with C | 2 Comments

c_basic

why we do not use address operator before variables in printf statement for fetching value: example: printf(“%d”,&a);

Posted in Data Structures with C | 1 Comment

character driver……………….

partial write   creates problem so i could not able to implement multiple quantum ,without partial write it is easy perform for multiple quantum , and it crates complexity so i want to  freeze my self at single quantum ……….

Posted in Uncategorized | Leave a comment

kernel level

Is there any function to reallocate memory at the kernel level in spite of  kmalloc……????

Posted in Character Driver | 2 Comments

How this program is excutable without existing any header file????

int main()         //without header file {int *i; char k; float s; char j[5]; struct hi { }; return 0; } //where these all keywords and main function is declared and defined…?????

Posted in Data Structures with C | 3 Comments

why not Address operator & used with the string variables in scanf function and used for other types??..

Posted in Data Structures with C, Uncategorized | 3 Comments

why we should avoid single character as string???…

example : char a[]=”a”; this is possible but not efficient because we have other method to assign character const as shown below: char c=’a’;

Posted in Data Structures with C | 3 Comments

Wish you

?BELATED HAPPY DIWALI?

Posted in Uncategorized | Leave a comment

Char dri…………..

If container of function returns scull_dev pointer, then where  the major and minor numbers are located into the different structures??????

Posted in Character Driver | Leave a comment

c basics

what is the difference between NULL and NUL  ………………..??????

Posted in Data Structures with C | 2 Comments

char driver……..?

Could any body try ,to satisfied me ,by telling me the truth of the container of function?

Posted in Character Driver | 1 Comment

char deriver……………….??

why kernel can not dereference user space buffer ??????

Posted in Character Driver | 1 Comment

Trim function………………..

please write appropriate comment……………… //this function only remove last node of the scull_dev  because it has not any  reverencing  function for deleting previous nodes till the fist node. //sir has taken one previous pointer but it also deletes  only one … Continue reading

Posted in Character Driver | 1 Comment

scull for adding one item……………….. try on gcc it may require some modification

#include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<sys/stat.h> //#include<fcntl.h> //#include<unistd.h> #include<string.h> #define QSET 3 //size of the pointer array ,points to quantum. #define QUANTUM 4 //size of quantum. struct scull_dev { struct scull_qset *data; //points to scull qset int qset; //qset size int quantum; … Continue reading

Posted in Data Structures with C | 1 Comment