EmbLogic's Blog

Author Archives: dhanashri

IPC

When two processes are communicating via fifo and if they are in the blocking state say block on open, block on read/write, what is the state of the process during this blocking state. Is it sleep state or wait state … Continue reading →

Posted in Uncategorized | 1 Comment

Something important abt pointer

int main(void) { char *ptr; ptr = malloc(sizeof(char)*20); printf(“%p\n”, ptr); ptr = “hello”; printf(“%p\n”, ptr); printf(“The sting is %s\n”, ptr); free(ptr); return 0; } Check the above program. Ptr address is different in first and second case. Also free will … Continue reading →

Posted in Uncategorized | 1 Comment

Driver Assignment

Following assignments to complete. 1) Implement lkm in which perform reading writting for multiple quantums. 2) Write two different application, one for reading and one for writting. Make a common node. Writer will write and reader will read. 3) Read … Continue reading →

Posted in Uncategorized | Leave a comment

Char Driver

Implememted multiple quantums writing and reading successfully.

Posted in Uncategorized | Leave a comment

SizeofStruct

struct Node { int data; struct Node *next; }var; int main() { printf(“SIze of struct = %d\n”, sizeof(struct Node)); return 0; } Here it is printing 16. Can someone explain how it is printing 16?

Posted in Uncategorized | 2 Comments

Assignment

completed Assignment 1

Posted in Uncategorized | 1 Comment

Assignment

updated assignment 005_21_Assignment_1

Posted in Uncategorized | Leave a comment