EmbLogic's Blog

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:
case IOSQUANTUM:
because after ‘case’ we have written a string..and ‘cmd’ is int type…..how?

Posted in Character Driver, Uncategorized | Tagged | 1 Comment

loop

for(y=1;y<10;y++)

x=y;

printf(“%d\n”,x);

printf(%d\n”,y);

it gives the output 9,10. why?

Posted in Uncategorized | 2 Comments

What are init 0, init 1, init 2 ,init 3, init 4, init 5, init 6, init s, init S

There are basically 8 runlevels in unix.
Run Level: At any given time, the system is in one of eight possible run levels. A run level is a software configuration under which only a selected group of processes exists. Processes spawned by init for each of these run levels are defined in /etc/inittab. init can be in one of eight run levels, 0-6 and S or s (S and s are identical). The run level changes when a privileged user runs /sbin/init.

init 0 : Shutdown (goes thru the /etc/rc0.d/* scripts then halts)
init 1 : Single user mode or emergency mode means no network no multitasking is present in this mode only root has access in this runlevel
init 2 : No network but multitasking support is present .
init 3 : Network is present multitasking is present but with out GUI .
init 4 : It is similar to runlevel 3; It is reserved for other purposes in research.
init 5 : Network is present multitasking and GUI is present with sound etc.
init 6 : This runlevel is defined to system restart.
init s : Tells the init command to enter the maintenance mode. When the
system enters maintenance mode from another run level, only the system console
is used as the terminal.
init S : Same as init s.
init m : Same as init s and init S.
init M : Same as init s or init S or init m.

Posted in Uncategorized | Leave a comment

linux…………..

how linux os  is more secure then windows , however the linux is open source and any body easily catch the kernel and access it………………..???????????//

Posted in Linux Internals and System Programming | 1 Comment

related to character drivers

i have complete semaphore,completion,spin_lock for multiple item

Posted in Uncategorized | Leave a comment

Driver status

sir,
i have use smaphore,blocking-IO,lseek on my character driver.

Posted in Uncategorized | Leave a comment

Discussion over the compilation process,linker at link time and run time……

Sir we have only abstract knowledge about compilation process,linker, loader, and shared objects at run time,and about kernel modules at run time….So its important concept and we requested you to please  organize comprehensible lecture on this topic……

Posted in Uncategorized | Leave a comment

Macros and function………………..

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

Posted in Data Structures with C | 1 Comment

character driver status….

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

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

char_driver status…

sir, i have completed read & write in single as well as multi quantum.

Posted in Uncategorized | Leave a comment