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..?
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..?
How we can access our sucll_dev structure of specific device by a proc file system or in its function like read proc ()……….??????/
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?
for(y=1;y<10;y++)
x=y;
printf(“%d\n”,x);
printf(%d\n”,y);
it gives the output 9,10. why?
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.
how linux os is more secure then windows , however the linux is open source and any body easily catch the kernel and access it………………..???????????//
i have complete semaphore,completion,spin_lock for multiple item
sir,
i have use smaphore,blocking-IO,lseek on my character driver.
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……
what is the conceptual difference between macros and function…………???
sir i have completed llseek,semaphor & read write with multiple quantums……..
why we can not compare two variables of same structure type????
why we do not use address operator before variables in printf statement for fetching value: example: printf(“%d”,&a);
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 ……….
sir, i have completed read & write in single as well as multi quantum.