to emulate kernel using any virtualizations ?

2009-07-17 Thread Siddu
Hi all, Have you ever tried to emulate the Linux kernel using any of the virtualizations techniques without tampering the host kernel ? if so please tell me how , or give me any pointers for the same -- Regards, ~Sid~ http://sidsenclave.blogspot.com

Re: to emulate kernel using any virtualizations ?

2009-07-17 Thread Mulyadi Santosa
Hi... On 7/17/09, Siddu siddu.s...@gmail.com wrote: Hi all, Have you ever tried to emulate the Linux kernel using any of the virtualizations techniques without tampering the host kernel ? if so please tell me how , or give me any pointers for the same -- Regards, ~Sid~

Re: Checking Installed library

2009-07-17 Thread Mulyadi Santosa
On 7/17/09, Rishi Agrawal rishi.b.agra...@gmail.com wrote: Is autoconfigure the only way to find this out.?? On Wed, Jul 15, 2009 at 6:52 AM, Pei Lin telent...@gmail.com wrote: Please don't do top posting... Although it's OOT, I can help a bit. IMO, you can directly check /usr/lib or parse

Re: Checking Installed library

2009-07-17 Thread Rishi Agrawal
On Fri, Jul 17, 2009 at 12:27 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On 7/17/09, Rishi Agrawal rishi.b.agra...@gmail.com wrote: Is autoconfigure the only way to find this out.?? On Wed, Jul 15, 2009 at 6:52 AM, Pei Lin telent...@gmail.com wrote: Please don't do top

Re: ksocket problem

2009-07-17 Thread Peter Teoh
On Wed, Jul 15, 2009 at 1:29 AM, krushnaal paikrisonea...@gmail.com wrote: i tried ksocket when i tried to to do make for the makefile in sample/tcp/srv it gave me the foll error,plz help [r...@localhost srv]# make make -C /lib/modules/2.6.28/build M=/home/k/ksock/sample/tcp/srv modules

how to flush cache ??

2009-07-17 Thread er krishna
Dear All, I am facing some problem, I have to flush the buffer cache from my driver I am trying to find any api for linux kernel or any way to do it from a kernel module on x86 platform. Does anybody know how to do it ? Please help. I have tried following things : 1. echo 3

why using defaults found in /boot/config-2.6.24-16-generic ?

2009-07-17 Thread Siddu
Hi all, I am trying to build one of the 2.6.29 versions of the kernel and my host kernel is 2.6.24-16 when i do $make menuconfig Why is it taking scripts/kconfig/mconf arch/x86/Kconfig # # using defaults found in /boot/config-2.6.24-16-generic # /boot/config-2.6.24-16-generic:356:warning: symbol

are register_chrdev() and register_chrdev_region() deprecated?

2009-07-17 Thread Robert P. J. Day
from a quick google, it appears that those two kernel calls have been deprecated for a while, but there's still a *lot* of that left in the kernel and, more to the point, newer drivers coming in that continue to make those calls. i'm thinking that the scripts/checkpatch.pl utility should flag

Re: how to flush cache ??

2009-07-17 Thread er krishna
On Fri, Jul 17, 2009 at 7:01 PM, Peter Teoh htmldevelo...@gmail.com wrote: On Fri, Jul 17, 2009 at 6:54 PM, er krishnaerkris...@gmail.com wrote: Dear All, I am facing some problem, I have to flush the buffer cache from my driver I am trying to find any api for linux kernel or any way

Re: how to flush cache ??

2009-07-17 Thread Peter Teoh
On Fri, Jul 17, 2009 at 6:54 PM, er krishnaerkris...@gmail.com wrote: Dear All, I am facing some problem, I have to flush the buffer cache  from my driver I am trying to find any api for linux kernel or any way to do it from a kernel module on x86 platform. Does anybody know how to do it ?

Re: how to flush cache ??

2009-07-17 Thread Peter Teoh
sorrymy previous was accidentally sent out halfway...specifically detailing on the implementation of drop_caches_sysctl_handler(): and reading into the implementation, it just wipe away all the dirty buffer cache (as the name implies).   Not really the type of flushing I originally meant

Re: how to flush cache ??

2009-07-17 Thread er krishna
Dear Peter, Thanks for the great help. Just asking, If I have to include this function [ drop_caches_sysctl_handler ] , then what should I do ? Shall I export it and compile the kernel or is there any other means to do it. Second, I just want to know that there will be lots of hurdels to set

Re: Checking Installed library

2009-07-17 Thread Manish Katiyar
On Fri, Jul 17, 2009 at 10:34 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:40 PM, Rishi Agrawal rishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:27 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On 7/17/09, Rishi Agrawal

Re: What is Module.symversion used?

2009-07-17 Thread Mulyadi Santosa
On Sat, Jul 18, 2009 at 12:07 AM, Durga Prasadwrite...@yahoo.com wrote: Hello, When compiling a kernel module, i see a Module.symvers missing message, like:   WARNING: Symbol version dump /usr/src/linux-2.6.27.19-5-obj/ia64/debug/Module.symvers    is missing; modules will have no

Re: What is Module.symversion used?

2009-07-17 Thread Microbit_Ubuntu
On Fri, 2009-07-17 at 10:07 -0700, Durga Prasad wrote: Hello, When compiling a kernel module, i see a Module.symvers missing message, like: WARNING: Symbol version dump /usr/src/linux-2.6.27.19-5-obj/ia64/debug/Module.symvers is missing; modules will have no

Re: sysfs entries for the character driver

2009-07-17 Thread arun c
On Fri, Jul 17, 2009 at 1:45 PM, Daniel Baluta daniel.bal...@gmail.comwrote: Hello, I want to create sysfs entries for my character device in order to manipulate (show, store) the device parameters. I am registering the character driver by alloc_chrdev_region + cdev_init + cdev_add.

Re: Checking Installed library

2009-07-17 Thread Rishi Agrawal
On Fri, Jul 17, 2009 at 7:22 PM, Manish Katiyar mkati...@gmail.com wrote: On Fri, Jul 17, 2009 at 10:34 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:40 PM, Rishi Agrawal rishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:27 PM, Mulyadi

Re: how to flush cache ??

2009-07-17 Thread Peter Teoh
my first attempt at any solution, is to do it in userspace. This article is good: http://aplawrence.com/Linux/buffer_cache.html drop caches is principally used, if u want to remove all existing cache, not flushing it to the storage, so that your next read is guaranteed to be from the storage.