hi all,
i m studying linux-kernel-2.6.16.
i m trying to understand basically how /proc/kcore works. for tht i hv
written a small c code & i hv added printk statments in open_kcore() ,
kclist_add(), get_kcore_size() and in read_kcore() in /proc/kcore.c
file...but after executing my c program it's not printing all printk
statments... after execution it is printing only statment tht i hv
written in kclist_add() function.
please any one can tell why it's not printing all statments in printk???
this the c program tht i hv written for reading /proc/kcore:
#include <stdio.h>
int main()
{
FILE *fp;
char array[10];
int i=0;
fp = fopen("/proc/kcore","r");
if(!fp)
return 1;
while(i<10)
{
fgets(array,10,fp);
printf("%s",array);
i++;
}
fclose(fp);
return 0;
}
thanks,
Priyanka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]