Re: allocating aligned memory

2009-02-17 Thread Peter Teoh
sorry my mistake.should be 0xF instead :-). On Wed, Feb 18, 2009 at 1:31 PM, Pei Lin wrote: > 2009/2/17 Peter Teoh : > > i think just & 0x1F, after allocating from kmalloc(), but must ensure > that > > &1F, is that right? 0x1F & 0x1F = 0x1F = 31 > > the new address have sufficient space aft

virtual mm location to physical page translation

2009-02-17 Thread soumen acharya
Hi, I trying to do a virtual to physical page translation. I need the page structure for a virtual address. I was using follow_page function. But compiler says it's undefined. I think this function is not Exported. Is there any way to do that. Thanks in advance. Soumen IIIT Banga

Re: sector size in block device drivers

2009-02-17 Thread nidhi mittal
i m sorry but can someone give a direct clarification i m unable to get my answer ... its going in different directions ...but not able to get me through my doubt ... i m sorry may be my understanding is lacking somewhere ... On Mon, Feb 2, 2009 at 9:01 PM, Greg Freemyer wrote: > On Mon, Feb

Re: a very small problem -- strlen

2009-02-17 Thread Frederic Weisbecker
On Wed, Feb 18, 2009 at 11:00:30AM +0530, nidhi mittal wrote: > hi > a very small doubt may be to ask on forum ... > > i wanted to user strlen in kernel module > for that i will have to include string.h > but as we know > that is a user space library > so what shd i include to use strlen

a very small problem -- strlen

2009-02-17 Thread nidhi mittal
hi a very small doubt may be to ask on forum ... i wanted to user strlen in kernel module for that i will have to include string.h but as we know that is a user space library so what shd i include to use strlen in kernel space -- Thanks & Regards Nidhi

Re: allocating aligned memory

2009-02-17 Thread Pei Lin
2009/2/17 Peter Teoh : > i think just & 0x1F, after allocating from kmalloc(), but must ensure that &1F, is that right? 0x1F & 0x1F = 0x1F = 31 > the new address have sufficient space after alignment. > > correct? > > On Sun, Feb 15, 2009 at 5:41 PM, Ramagudi Naziir wrote: >> >> hello everyone >>

Re: debugging kernel hang (can't type anything)

2009-02-17 Thread Peter Teoh
Would u like to share WHERE u made the change? WHAT u do could be part of academic exercise, so perhaps u want to keep confidential, but WHERE would be helpful. I am suspecting (very usual for changes to MM codes) that u have done something illegal while holding a open spinlock. So knowing whe

RE: Building a kernel and configuration items

2009-02-17 Thread Bruce Blinn
-Original Message- From: kernelnewbies-bou...@nl.linux.org [mailto:kernelnewbies-bou...@nl.linux.org] On Behalf Of Henrik Austad Sent: Tuesday, February 17, 2009 12:52 AM To: kernelnewbies@nl.linux.org Cc: Daniel Baluta; Kevin Wilson Subject: Re: Building a kernel and configuration items

kgdb do not stop in my module ( does not see functions from mymodule.ko)

2009-02-17 Thread Lev Olshvang
Hello List, I am trying to debug my module using kgdb After some retires I made a working host -target serial connection I use Ubuntu 7.10 as host, and Kernel 2.6.26 on target. The target indeed stops in boot waits for the gdb to set up breakpoints, So I used set solib-path-search

Recovering Partition using linux

2009-02-17 Thread rishi agrawal
Hello Everyone, I had a 60 Gb partition of type NTFS. I accidently deleted it. I want to recover the whole partition as recovering few files from it is not useful for me Disk /dev/sda: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 =

Requesting shared IRQ?

2009-02-17 Thread Ole Loots
Hello there, I'm new to the list and I'm new to kernel module developing, too. I want to handle an Interrupt on an ARM processor... (at91). The Interrupt is already handled by the module at91_timer (compiled into kernel). the module registers it's interrupt this way: ret = request_irq(AT91_I

Re: debugging kernel hang (can't type anything)

2009-02-17 Thread Sukanto Ghosh
Hi Mulyadi, On Mon, Feb 16, 2009 at 7:32 PM, Mulyadi Santosa wrote: > Hm, not an expert, but if you're a Qemu user, probably I can give you > clue. When it hangs, go to Qemu monitor and type "print $pc" (if I > recall correctly). It will print current executed instruction. And > since your kernel

kgdb do not stop in my module

2009-02-17 Thread Lev Olshvang
Hello List, I am trying to debug my module using kgdb After some retires I made a working host -target serial connection I use Ubuntu 7.10 as host, and Kernel 2.6.26 on target. The target indeed stops in boot waits for the gdb to set up breakpoints, So I used set solib-path-search

Re: Reworking a patch in git.

2009-02-17 Thread Manish Katiyar
On Tue, Feb 17, 2009 at 3:18 PM, Henrik Austad wrote: > On Tuesday 17 February 2009 10:26:58 Markus Heidelberg wrote: >> Manish Katiyar, 17.02.2009: >> > On Tue, Feb 17, 2009 at 1:49 PM, Henrik Austad wrote: >> > > You can do this several ways. One way, if you need to do a lot of >> > > reworking

Re: Reworking a patch in git.

2009-02-17 Thread Henrik Austad
On Tuesday 17 February 2009 10:26:58 Markus Heidelberg wrote: > Manish Katiyar, 17.02.2009: > > On Tue, Feb 17, 2009 at 1:49 PM, Henrik Austad wrote: > > > You can do this several ways. One way, if you need to do a lot of > > > reworking on a particular commit, and you do not want to change the >

Re: Reworking a patch in git.

2009-02-17 Thread Markus Heidelberg
Manish Katiyar, 17.02.2009: > On Tue, Feb 17, 2009 at 1:49 PM, Henrik Austad wrote: > > You can do this several ways. One way, if you need to do a lot of reworking > > on > > a particular commit, and you do not want to change the order of the commits: > > git checkout -b tmp_branch target_commit_

Re: Building a kernel and configuration items

2009-02-17 Thread Henrik Austad
On Tuesday 17 February 2009 08:44:35 Daniel Baluta wrote: > On Tue, Feb 17, 2009 at 9:19 AM, Kevin Wilson wrote: > > Hello, > > I have a git clone of the linux kernel tree, and from time to time I > > perform git pull. Sometimes new configuration items are added; So after > > running "git pull" a

Re: Reworking a patch in git.

2009-02-17 Thread Henrik Austad
On Tuesday 17 February 2009 05:22:50 Manish Katiyar wrote: > Hi, Hi! Before you read on: be very aware that I'm not a git-expert. If you really want to have the 'correct' answer, send the question to g...@vger.kernel.org or ask at #...@freenode > I have a simple question wrt git. After making f

Re: allocating aligned memory

2009-02-17 Thread Peter Teoh
i think just & 0x1F, after allocating from kmalloc(), but must ensure that the new address have sufficient space after alignment. correct? On Sun, Feb 15, 2009 at 5:41 PM, Ramagudi Naziir wrote: > hello everyone > > i need to allocate memory aligned 16 bytes. > > how can i do that ? > > can I u

Re: Reworking a patch in git.

2009-02-17 Thread Manish Katiyar
On Tue, Feb 17, 2009 at 1:49 PM, Henrik Austad wrote: > On Tuesday 17 February 2009 05:22:50 Manish Katiyar wrote: >> Hi, > > Hi! Before you read on: be very aware that I'm not a git-expert. If you really > want to have the 'correct' answer, send the question to g...@vger.kernel.org > or > ask at