Re: kernel build question

2008-09-09 Thread Thomas Petazzoni
Le Mon, 8 Sep 2008 17:59:53 +0530, "umesh b" <[EMAIL PROTECTED]> a écrit : > I am using a custom kernel (2.6.25.6) on a Thinkpad R61i. Why i have > asked this question is it took me several builds to come up with a > working kernel which take care of most of the THinkapd resources like > PCI sound

device model and external device

2008-09-09 Thread Ramagudi Naziir
Hi all, If I understand correctly, the importance of adding a device to the device model is that now you can register the suspend and resume power management callbacks. And the process of adding is automatically by the kernel calling the probe function. Q: if I am writing a driver for an external

Re: kernel build question

2008-09-09 Thread Thomas Petazzoni
Le Mon, 08 Sep 2008 14:54:35 +0530, shreeram <[EMAIL PROTECTED]> a écrit : > You can write a shell script to do that. Use "cat /proc/devices" to > find the devices that are presently being used. /proc/devices doesn't list the devices that are presently being used. It lists the registered majors b

Re: Writing Virtual Serial Comm port Driver

2008-09-09 Thread mayank rana
Hi All,   1. I looked at Linux Device Drive 3rd Edition for TTY driver. I tried with tiny_tty driver mentioned in book. I am able to open the /dev/ttty0 and also get the attribute using TCGETA ioctl from user space. As I am trying to write e.g. echo "hi" > /dev/ttty0. I am not getting any data i

Re: Request queues and bio structures

2008-09-09 Thread Peter Teoh
Further information here: http://www.kernel-labs.org/?q=blockdriver http://www.kernel-labs.org/?q=blockiolayer and kernel source drivers/block subdirectory, looking for all the register_blkdev() caller, all these can be your potential block devices examples. whether they used BIO or not it depe

Re: address space of a block device

2008-09-09 Thread Paulo da Silva
Peter Teoh escreveu: your question is vague.u never explain what u are trying to do.purpose why u need block device? used as a what? and then purpose of address space (for your case)? Not so vague ... If you need to access the address space of a block device you use (so far): struc

Re: Request queues and bio structures

2008-09-09 Thread Peter Teoh
On Wed, Sep 10, 2008 at 12:51 AM, Rohit Sharma <[EMAIL PROTECTED]> wrote: > I was going through block drivers, > i am not able to associate request queues and bio structures. > How are the requests processed using bio structures. > Can anyone provide me with block driver example or tutorial. > loo

Re: Problem of sigaction

2008-09-09 Thread Michael Blizek
Hi! On 09:48 Tue 09 Sep , Wang Yu wrote: > I have the following questions: > 1. In line 58 when I call sigaction to associate a action > handler(act.sa_handler or act.sa_sigaction) > with a signal SIGUSR1, how can I pass a parameter(for > example:pthread_id1) to the handler? I do not thin

Request queues and bio structures

2008-09-09 Thread Rohit Sharma
I was going through block drivers, i am not able to associate request queues and bio structures. How are the requests processed using bio structures. Can anyone provide me with block driver example or tutorial. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EM

Re: Why each c text file I take from the kernel source tree is not indented ?

2008-09-09 Thread Michael Blizek
Hi! On 09:50 Tue 09 Sep , Raz wrote: > How a newbie like me is supposed not to break any coding style rule ? > I use vim, not emacs . Do you have a vim configuration file for guys like me ? > I truly hope I am not "pissing off a kernel subsystem maintainer" Does scripts/checkpatch.pl help? -

Why each c text file I take from the kernel source tree is not indented ?

2008-09-09 Thread Raz
Hello I wanted to send a patch. not a big one. So, i read SubmittingPatches, CodingStyle , SubmitcheckList , patch format by jeff garzik, ( i tried to find the perfect patch , but the url was broken ) and stable_kernel_rules.txt. I wanted to make sure I do not break any rule. so i picked a random