EmbLogic's Blog

Category Archives: Character Driver

Project Status.

Working fine for singal Writer(Machine 1), Singal Reader(Machine 2), open/close file(Machine 3), and server(Machine 4). using sockets for IPC.

Posted in Character Driver, Uncategorized | Leave a comment

Thread synchronization done.

Running 100 applications in background writing and reading on Device… working absolutely fine.  

Posted in Character Driver, Linux Internals and System Programming | Leave a comment

Writing device drivers in Linux

Pre-requisites In order to develop Linux device drivers, it is necessary to have an understanding of the following: C programming. Some in-depth knowledge of C programming is needed, like pointer usage, bit manipulating functions, etc. Microprocessor programming. It is necessary … Continue reading

Posted in Character Driver | Leave a comment

Error : ‘conflicting types for ‘ Why ?

Hi, I was working on my Driver and got this Error for a function. I checked out other blogs on Internet and it was written that it occurs when you are calling a function before declaring it. But I did … Continue reading

Posted in Character Driver | 2 Comments

KERNEL_TIMER…….

In my lkm,when i printed the value of “HZ”. It comes out 1000. But the actual value defined in the header  #include<asm/param.h>  is 100. why..?

Posted in Character Driver, Device Drivers | 2 Comments

proc file system………

How we can access our sucll_dev structure of specific device by a proc file system or in its function  like read proc ()……….??????/

Posted in Character Driver | 2 Comments

ioctl..

In the ioctl function at driver level…….., the switch(cmd) statement have ‘cmd’ as the argument but we can see cmd is of ‘unsigned int’ type… i want to ask how the switch function perform case matching…. switch(cmd) { case IOSQSET: … Continue reading

Posted in Character Driver, Uncategorized | Tagged | 1 Comment

character driver status….

sir  i have completed llseek,semaphor & read write with multiple quantums……..

Posted in Character Driver | 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

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