Re: File change notification along with user

2011-09-20 Thread rohan puri
On Wed, Sep 21, 2011 at 10:03 AM, V.Ravikumar wrote: > Hi all, > > Is it possible to write a module/driver which notifies file/directory > change asynchronously along with user name(or with uid) who modified it. > > inotify will do change notification but it will not provide uid who > modified/cre

File change notification along with user

2011-09-20 Thread V.Ravikumar
Hi all, Is it possible to write a module/driver which notifies file/directory change asynchronously along with user name(or with uid) who modified it. inotify will do change notification but it will not provide uid who modified/created the file. audit and inotify combination can work, but I'm lo

Re: question on memory mapping one page at a time

2011-09-20 Thread rohan puri
On Wed, Sep 21, 2011 at 2:24 AM, Jeff Haran wrote: > > -Original Message- > > From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- > > boun...@kernelnewbies.org] On Behalf Of Sri Ram Vemulpali > > Sent: Tuesday, September 20, 2011 11:24 AM > > To: kernelnewbies > > Subject

How to deal with two tasks with the same virtual time

2011-09-20 Thread Parmenides
Hi, As far as the CFS scheduler is concerned, every task, whose key is the task's virtual time, will be inserted into a red-black tree to improve the performence of seaching specified task. But, that works well only if any task's vritual time is different with the others tasks'. So, I wonder

Re: looking for 3.0 source

2011-09-20 Thread Jacky Lam
Thanks Mirco. But how about if I want to download 3.0.4 source? Jacky On 9/15/2011 6:08 AM, Mirco Tischler wrote: > 2011/9/14 Littlefield, Tyler: >> Hello: >> With the recent attacks on kernel.org, it's down and I'm unsure of where >> to get what I want. I found the 2.6 branch on github, but I'm

RE: question on memory mapping one page at a time

2011-09-20 Thread Jeff Haran
> -Original Message- > From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- > boun...@kernelnewbies.org] On Behalf Of Sri Ram Vemulpali > Sent: Tuesday, September 20, 2011 11:24 AM > To: kernelnewbies > Subject: question on memory mapping one page at a time > > Hi all, > >

question on memory mapping one page at a time

2011-09-20 Thread Sri Ram Vemulpali
Hi all, can anyone please explain the following code, what it is doing. I want the first few statements of the code, as they are calculating page frame number. This is little confusing, thanks in advance. struct page *simple_vma_nopage(struct vm_area_struct *vma, unsigned long ad

Re: Why do the CFS chase fairness?

2011-09-20 Thread Parmenides
2011/9/21 Mulyadi Santosa : > Hi Permenides :) > > Looks like I made few typos here and there, so allow me to put few erratas :) > >> 2011/9/20 Mulyadi Santosa : >>> What the scheduler needs perhaps at this point is good priority >>> recalculation is C could run ASAP. If not, even though C is in ru

Re: Why do the CFS chase fairness?

2011-09-20 Thread Mulyadi Santosa
Hi Permenides :) On Tue, Sep 20, 2011 at 18:11, Parmenides wrote: > Hi, > > I have gotten clearer idea of fairness between processes. Thanks for > your explanation with enough patience. :-) Looks like I made few typos here and there, so allow me to put few erratas :) > 2011/9/20 Mulyadi Santosa

reading devices with input.h

2011-09-20 Thread Volker Poplawski
Hi all, what's the recommended method for processing input device data with linux/input.h (from userspace) ? blocking read()? non-blocking read()? select(), epoll()? Regards ..Volker ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: 2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread rohan puri
On Tue, Sep 20, 2011 at 6:46 PM, kashish bhatia wrote: > Hi Abhijit, > > On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar wrote: > >> Hi list, >> It seems that the support for get_sb function is removed from kernel >> 2.6.39 onwards. My code which is working till 2.6.38 series is failing with >> n

Re: do_gettiimeofday query

2011-09-20 Thread rohan puri
On Tue, Sep 20, 2011 at 5:16 PM, Lal wrote: > I am having trouble with do_gettimeofday() function. I have following > source code: > > int my_module_init(void) > { > struct timeval tv = {0}; > do_gettimeofday(&tv); > printk("tv.tv_sec = %lu\n", tv.tv_sec); > return 0; > } > module

Re: 2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread kashish bhatia
Hi Abhijit, On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar wrote: > Hi list, > It seems that the support for get_sb function is removed from kernel 2.6.39 > onwards. My code which is working till 2.6.38 series is failing with new > kernels. > > The function "get_sb()" is still present in securi

Re: 2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread rohan puri
On Tue, Sep 20, 2011 at 5:54 PM, Abhijit Pawar wrote: > On 09/20/2011 05:50 PM, rohan puri wrote: > > > > On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar wrote: > >> Hi list, >> It seems that the support for get_sb function is removed from kernel >> 2.6.39 onwards. My code which is working till 2

Re: 2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread Abhijit Pawar
On 09/20/2011 05:50 PM, rohan puri wrote: On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar > wrote: Hi list, It seems that the support for get_sb function is removed from kernel 2.6.39 onwards. My code which is working till 2.6.38 series is failing

Re: 2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread Abhijit Pawar
On 09/20/2011 05:14 PM, Abhijit Pawar wrote: Hi list, It seems that the support for get_sb function is removed from kernel 2.6.39 onwards. My code which is working till 2.6.38 series is failing with new kernels. I tried finding out but there isnt anything mentioned. So if this function itsel

Re: 2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread rohan puri
On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar wrote: > Hi list, > It seems that the support for get_sb function is removed from kernel 2.6.39 > onwards. My code which is working till 2.6.38 series is failing with new > kernels. > > I tried finding out but there isnt anything mentioned. So if thi

do_gettiimeofday query

2011-09-20 Thread Lal
I am having trouble with do_gettimeofday() function. I have following source code: int my_module_init(void) {     struct timeval tv = {0};     do_gettimeofday(&tv);     printk("tv.tv_sec = %lu\n", tv.tv_sec);     return 0; } module_init(my_module_init); This code is built-in kernel, and therefore

2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread Abhijit Pawar
Hi list, It seems that the support for get_sb function is removed from kernel 2.6.39 onwards. My code which is working till 2.6.38 series is failing with new kernels. I tried finding out but there isnt anything mentioned. So if this function itself is removed then how kernel is going to find

Re: Why do the CFS chase fairness?

2011-09-20 Thread Parmenides
Hi, I have gotten clearer idea of fairness between processes. Thanks for your explanation with enough patience. :-) 2011/9/20 Mulyadi Santosa : > Hi . > > I am reaching my virtual limit here, so beg me pardon :) > > On Mon, Sep 19, 2011 at 23:26, Parmenides >> Hmm..., does that mean timeslice

Re: profiling functions called in interrupt context

2011-09-20 Thread anish singh
On Tue, Sep 20, 2011 at 4:11 PM, Nuno Martins wrote: > > > On Tue, Sep 20, 2011 at 5:59 AM, Amit Nagal wrote: >> >> On Tue, Sep 20, 2011 at 10:25 AM, rohan puri >> wrote: >> > >> > >> > On Tue, Sep 20, 2011 at 10:13 AM, Amit Nagal >> > wrote: >> >> >> >> On Tue, Sep 20, 2011 at 10:05 AM, rohan

Re: profiling functions called in interrupt context

2011-09-20 Thread Nuno Martins
On Tue, Sep 20, 2011 at 5:59 AM, Amit Nagal wrote: > On Tue, Sep 20, 2011 at 10:25 AM, rohan puri > wrote: > > > > > > On Tue, Sep 20, 2011 at 10:13 AM, Amit Nagal > wrote: > >> > >> On Tue, Sep 20, 2011 at 10:05 AM, rohan puri > >> wrote: > >> > > >> > > >> > On Tue, Sep 20, 2011 at 9:44 AM,