EmbLogic's Blog

Author Archives: gaurav.sharma

lseek doubt

in write and read functions we are provided with a pointer to the file structure namely filp and we know this can change the position of the current read/write position namely the f_pos field in the struct file….but when in … Continue reading →

Posted in Uncategorized | Leave a comment

threads

what could be a practical example of the usage of the shared global variables in threads….is the usage similar to the shared memory???

Posted in Uncategorized | Leave a comment

uninterpretable results if I try to print minor number in open function

the obvious thought which comes in everybody’s mind is that when we give major and minor number at the time of mknod ,the device being opened is the one with the given minor number….i am also thinking the same…but discrepancy … Continue reading →

Posted in Uncategorized | Leave a comment

what is the difference between static binding and dynamic binding…plss explain

Posted in Uncategorized | 2 Comments

good program on the use of function pointers …everybody go through it will be helpful

#include void use_int(void *); void use_float(void *); void greeting(void (*)(void *), void *); int main(void) { char ans; int i_age = 22; float f_age = 22.0; void *p; printf(“Use int (i) or float (f)? “); scanf(“%c”, &ans); if (ans == … Continue reading →

Posted in Uncategorized | 2 Comments

sculls

implemented sculls successfully at the application level……it took some time but was worth it

Posted in Uncategorized | Leave a comment

problem in void**data field of the struct scull_Qset

i have checked in general that if we take void* data; and then do data=(char*)malloc(sizeof(char)); then it gives no warning but if we take void** data; and then i do data=(char**)malloc(sizeof(char*)); then it gives a warning of incompatible pointer assignment…..help … Continue reading →

Posted in Uncategorized | 2 Comments

sculls

in sculls do we have to make a linked representation of a queue and then insert elements into that queue by changing the rear pointerie that rear pointer will subsequently point to the location of the node of the linked … Continue reading →

Posted in Uncategorized | Leave a comment