Locking user space buffer in physical mem using get_user_pages

2007-11-28 Thread Tuytschaever, Tom
Dear Subscribers, As most of you will already know, one can use get_user_pages to get a struct pages list of a certain user space buffer. While doing this, get_user_pages also locks the pages into physical mem (preventing them from being swapped out to disk, or moved within phys mem) for usage wi

Re: the world's shortest module

2007-11-28 Thread Rene Herman
On 28-11-07 11:46, Robert P. J. Day wrote: based on a book i'm reading, apparently i can write a loadable module whose entire source file is nothing more than: = #include #include module_param(jiffies, uint, 444) ; MODULE_LICENSE("Dual BSD/GPL"); = as you can see, its entire pu

Re: the world's shortest module

2007-11-28 Thread Robert P. J. Day
On Wed, 28 Nov 2007, Rene Herman wrote: > On 28-11-07 11:46, Robert P. J. Day wrote: > > > based on a book i'm reading, apparently i can write a loadable > > module whose entire source file is nothing more than: > > > > = > > #include > > #include > > > > module_param(jiffies, uint, 444) ;

Re: IDT question

2007-11-28 Thread Ramagudi Naziir
Rene, Thanks ! and welcome back (just kidding) ;) On 11/25/07, Rene Herman <[EMAIL PROTECTED]> wrote: > On 25-11-07 08:58, Ramagudi Naziir wrote: > > > I read in intel's manual that you can either put interrupt gate > > or a task gate in the IDT. > > Or trap-gate, which is an interrupt-gate minu

the world's shortest module

2007-11-28 Thread Robert P. J. Day
based on a book i'm reading, apparently i can write a loadable module whose entire source file is nothing more than: = #include #include module_param(jiffies, uint, 444) ; MODULE_LICENSE("Dual BSD/GPL"); = as you can see, its entire purpose is to make the internal value "jiffies"

Re: try_to_unmap_file( ) in non-linear memory region of the file

2007-11-28 Thread Thomas Petazzoni
Le Tue, 27 Nov 2007 19:30:00 +0800, "Wang Yu" <[EMAIL PROTECTED]> a écrit : > What I want to know is what is the meaning of cursor and CLUSTER_SIZE? > and what does try_to_unmap_cluster want to do? > I am appreciated if someone will explain these codes in detail or give > me some documents about t