Re: demand based power management

2010-08-12 Thread er krishna
Yes its fine, I am just wandering if this option is enabled by bios ? How ? On Wed, Aug 11, 2010 at 9:57 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Wed, Aug 11, 2010 at 16:58, er krishna erkris...@gmail.com wrote: Dear All, Can anybody please let me know how to enable demand

Re: demand based power management

2010-08-12 Thread er krishna
On Thu, Aug 12, 2010 at 6:35 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Thu, Aug 12, 2010 at 14:22, er krishna erkris...@gmail.com wrote: Yes its fine, I am just wandering if this option is enabled by bios ? How ? Please don't top post :) By BIOS? Ehm...well, by default

demand based power management

2010-08-11 Thread er krishna
Dear All, Can anybody please let me know how to enable demand based power management in linux kernel ? Best Regards, Krishna

free download of linux kernel development volume 3

2010-07-29 Thread er krishna
Dear All, If anybody have softcopy of Linux kernel Development vol 3, kindly give me the book or let me know the link. Best Regards, Krishna

Re: free download of linux kernel development volume 3

2010-07-29 Thread er krishna
mulyadi.sant...@gmail.comwrote: On Thu, Jul 29, 2010 at 17:59, er krishna erkris...@gmail.com wrote: Dear All, If anybody have softcopy of Linux kernel Development vol 3, kindly give me the book or let me know the link. We kindly encourage you to buy the original book instead. LKD

dentry path name lookup

2010-01-27 Thread er krishna
Dear All, Can anybody please help me how does dentry does path resolution. I want to undersatnd the whole process in detail. Any link or comments are most welcome. Just asking for my understanding, Dentry maintains a relationship between file object inode for path name lookup ? Is it right ?

some help required in FOIP

2009-12-24 Thread er krishna
Dear All, Can anyone please send me some good link/RFC/document to deeply know about FOIP and T.38. Best Regards, Krishna

private data structure [ in network driver and other driver ]

2009-12-19 Thread er krishna
Dear all, I have a confusion because I am new to device driver thats' why I am asking this question ? what is this private data in all types of device structure like netdev, blkdev and so on ? what is the actual use of it ? what will happen if I don't use it ? And why should I use it ? Best

cloud computing

2009-11-15 Thread er krishna
Dear All, I am in search of finding some good info and some reacarch going in the field of cloud computing. The level is basic to advance. Since I am new in this area, Can anybody help me to find some good links and study material/research paper available with this domain. Best Regards, Krishna

scatter-gather io segments

2009-11-11 Thread er krishna
Dear All, I have two queries regarding i/o at block layer: 1. Segment : My understanding : One page contains more than one buffer. A couple of buffers combines and makes a segment . A segment contains page, offset and size. Just asking these are true or not ? Second, Can a segment contains

why there is ktype ?

2009-11-10 Thread er krishna
Dear All, Can anybody give me some very good and clear reasons that why kobjects even have ktype fields, when they have kset ? Regards, Krishna

Re: How to disable all interrupts including scheduler

2009-11-09 Thread er krishna
In the 2.6 kernel, it is possible to turn off all interrupt handling on the current processor with either of the following two func- tions (which are defined in asm/system.h): void local_irq_save(unsigned long flags); void local_irq_disable(void); A call to local_irq_save disables

Re: locking and interrupts

2009-10-07 Thread er krishna
Rajat San, Just asking (since i didn't see spinlock implementation in kernel src), On Tue, Oct 6, 2009 at 5:52 PM, Rajat Jain rajat.j...@infogain.com wrote: Hello Govind, What happens when you go for spin locks without disabling kernel preemption? Suppose you acquire a spin lock in a

Re: Re: locking and interrupts

2009-10-07 Thread er krishna
On Wed, Oct 7, 2009 at 12:45 PM, govind raj nayak govin...@rediffmail.comwrote: Yes, spinlock would automatically disable kernel preemption. I don't think so, otherwise what is the use of spin_lock_irq_save api, if spin_lock api does it ?. I mean if spin_lock api is disabling the kernel

Re: Re: locking and interrupts

2009-10-07 Thread er krishna
On Wed, Oct 7, 2009 at 1:57 PM, er krishna erkris...@gmail.com wrote: On Wed, Oct 7, 2009 at 12:45 PM, govind raj nayak govin...@rediffmail.com wrote: Yes, spinlock would automatically disable kernel preemption. I don't think so, otherwise what is the use of spin_lock_irq_save api

Re: Re: locking and interrupts

2009-10-07 Thread er krishna
On Wed, Oct 7, 2009 at 2:20 PM, er krishna erkris...@gmail.com wrote: On Wed, Oct 7, 2009 at 1:57 PM, er krishna erkris...@gmail.com wrote: On Wed, Oct 7, 2009 at 12:45 PM, govind raj nayak govin...@rediffmail.com wrote: Yes, spinlock would automatically disable kernel preemption. I

Re: locking and interrupts

2009-10-07 Thread er krishna
On Wed, Oct 7, 2009 at 12:04 PM, Jason Nymble jason.nym...@gmail.comwrote: On 07 Oct 2009, at 7:47 AM, er krishna wrote: Rajat San, Just asking (since i didn't see spinlock implementation in kernel src), On Tue, Oct 6, 2009 at 5:52 PM, Rajat Jain rajat.j...@infogain.comwrote: Hello

Re: Re: locking and interrupts

2009-10-07 Thread er krishna
Krishna, you seem to be getting confused between kernel getting preempted and kernel getting interrupted. Any spin lock will disable kernel preemption. If you use spin_lock() then it will just disable kernel preemption but if you get any interrupt then its handler will get executed. But

locking and interrupts

2009-10-06 Thread er krishna
Dear All, I have a very basic confusion, please help and confirm the right answer : If a process/thread (user space/kernel space) has taken a lock on a critical section code, and suddenly an interrupt occurs which want to use the same shared data of critical region. Will it able to preempt this

modprobe error with ndiswrapper [ please suggest why modprobe fails (or tell me the flow of modprobe)]

2009-08-11 Thread er krishna
Dear All, I have a simple problem in doing modprobe of ndiswrapper in case of driver of Intel Corporation PRO/Wireless 3945ABG Network Connection [8086:4222] card. The steps which I mentioned is as follows. Please help me if I am missing something. Sorry, this is specific about ndiswrapper, but

Re: modprobe error with ndiswrapper [ please suggest why modprobe fails (or tell me the flow of modprobe)]

2009-08-11 Thread er krishna
On Tue, Aug 11, 2009 at 3:17 PM, Erik Mouw m...@nl.linux.org wrote: On Tue, 11 Aug 2009 11:37:03 +0530 er krishna erkris...@gmail.com wrote: I have a simple problem in doing modprobe of ndiswrapper in case of driver of Intel Corporation PRO/Wireless 3945ABG Network Connection [8086:4222

Re: preemption

2009-07-31 Thread er krishna
be pre-empted then you are right. If a lower process has taken a lock its preempt_count value is +ve , can it be preempted by higher priority process ? *From:* kernelnewbies-bou...@nl.linux.org [mailto: kernelnewbies-bou...@nl.linux.org] *On Behalf Of *er krishna *Sent:* 30 July 2009 14

preemption

2009-07-30 Thread er krishna
Dear All, I have some confusion about preemption. Can anybody please clear my query : 1) If there are two process running in kernel space one of them has a lock its preempt_count value is +ve , can the other process preempt it ? If it preempt the first process ( which is in running state

Re: preemption

2009-07-30 Thread er krishna
that process; even if any process higher than that comes. On Thu, Jul 30, 2009 at 2:31 PM, er krishna erkris...@gmail.com wrote: Dear All, I have some confusion about preemption. Can anybody please clear my query : 1) If there are two process running in kernel space one of them has a lock its

Re: how to export function from fs/dropcache.c

2009-07-21 Thread er krishna
I am again repeating the steps, i found something interested, when I am doing make after making EXPORT_SYMBOL entries in fs/drop_caches.c ( during kernel compilation); I am getting following warning messages for each of the exported function from this file only, the messages are: data

Re: how to export function from fs/dropcache.c

2009-07-21 Thread er krishna
On Tue, Jul 21, 2009 at 12:45 PM, Siddu siddu.s...@gmail.com wrote: On Tue, Jul 21, 2009 at 11:13 AM, er krishna erkris...@gmail.com wrote: I am again repeating the steps, i found something interested, when I am doing make after making EXPORT_SYMBOL entries in fs/drop_caches.c ( during

Re: how to export function from fs/dropcache.c

2009-07-21 Thread er krishna
message in compilation. Best Regards, Krishna On Tue, Jul 21, 2009 at 2:29 PM, Pei Lin telent...@gmail.com wrote: ^_^ I found the root cause of your issue. u forgot includemodule.h in your fs/drop_caches.c ... BRs, Lin 2009/7/21 er krishna erkris...@gmail.com: I am again

Re: how to flush cache ??

2009-07-20 Thread er krishna
Not only linux kernel, every aspect of life and in fact the whole life is to discover more more more and it will never end. :) On Mon, Jul 20, 2009 at 5:29 AM, Peter Teoh htmldevelo...@gmail.com wrote: wow.Linux Kernel is excitinglots of things to readand re-readand

how to export function from fs/dropcache.c

2009-07-20 Thread er krishna
Dear All, I have one simple problem in exporting the function. Everything is fine, but its not working as per the expectation. Actually I have to export some function from fs/dropcache.c, but it is not working as per the expectataion, [ I am able to export any function from other files like

Re: how to export function from fs/dropcache.c

2009-07-20 Thread er krishna
20, 2009 at 9:54 PM, SandeepKsinha sandeepksi...@gmail.com wrote: Hi Krishna, On Mon, Jul 20, 2009 at 8:10 PM, er krishna erkris...@gmail.com wrote: Dear All, I have one simple problem in exporting the function. Everything is fine, but its not working as per

Re: how to flush cache ??

2009-07-18 Thread er krishna
Peter, Thats' fine. I have already gone through those articles, and user space techniques are fine with me. But here I have to do it ( flush the cache ) from kernel module, so I have to do all the things that kernel does when it get argument 3 into /proc/sys/vm/dropcaches. Now again

Re: how to flush cache ??

2009-07-18 Thread er krishna
) api. Thanks Best Regards, Krishna On Sat, Jul 18, 2009 at 11:46 AM, er krishna erkris...@gmail.com wrote: Peter, Thats' fine. I have already gone through those articles, and user space techniques are fine with me. But here I have to do it ( flush the cache ) from kernel module, so I have

Re: how to flush cache ??

2009-07-18 Thread er krishna
Dear Peter , I was thinking in a similar manner, but you know : static void drop_pagecache_sb(struct super_block *sb) static void drop_pagecache(void) I mean these are static function, how to export them ? Just asking, shall I take help of pointer or some wrapper to export these function or

Re: how to flush cache ??

2009-07-18 Thread er krishna
or for option 2. Thanks Best Regards, Krishna On Sat, Jul 18, 2009 at 5:57 PM, er krishna erkris...@gmail.com wrote: I am talking to only exporting drop_pagecache_sb drop_pagecache function, not drop_caches_sysctl_handler. On Sat, Jul 18, 2009 at 5:53 PM, er krishna erkris...@gmail.com

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

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 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