Re: what is a changeset ?

2007-08-02 Thread Ramagudi Naziir
On 8/2/07, Erik Mouw <[EMAIL PROTECTED]> wrote: > On Thu, Aug 02, 2007 at 07:48:27PM +0300, Ramagudi Naziir wrote: > > so every commit in git is a changeset ? > > Yes. thank you naziir -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please rea

Re: pthreads and futexes

2007-08-02 Thread Razvan Deaconescu
Jug Venkatesh wrote: Hi, Can anyone describe, or link me to an explanation of how futexes are used within pthreads? http://en.wikipedia.org/wiki/Futex Follow the links. Razvan -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please rea

Re: kmalloc and other memory allocation failures.

2007-08-02 Thread Bruce Rowen
Thanks Thomas. The failures appear to be similar to something corrupting the stack. My initial impressions are it is somehow related to a change in the kernel that allows parameters to be passed in registers versus on the stack (i.e. REGPARM) but I can't find any evidence that I have this

pthreads and futexes

2007-08-02 Thread Jug Venkatesh
Hi, Can anyone describe, or link me to an explanation of how futexes are used within pthreads? Thanks -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ

Re: kmalloc and other memory allocation failures.

2007-08-02 Thread Thomas Petazzoni
Hi, Le Wed, 1 Aug 2007 16:02:46 -0600, Bruce Rowen <[EMAIL PROTECTED]> a écrit : > EFLAGS: 00010216 (2.6.22.1 #9) > EIP is at __register_chrdev_region+0x61/0x180 With a quick look at the code, I can't tell you what's wrong. To understand what's happening, you can disassemble your vmlinux kerne

Re: pthreads

2007-08-02 Thread Thomas Petazzoni
Hi, Le Mon, 30 Jul 2007 10:29:43 +0100 (BST), hari krishna angadi <[EMAIL PROTECTED]> a écrit : > i am porting user code as kernel code.in user code pthreads is > used i want respective in kernel.pthread_mutex_t and > PTHREAD_MUTEX_INITIALIZER is used in user code Inside the kernel, there ar

Re: about the macro "current" of i386 machines

2007-08-02 Thread Mulyadi Santosa
Hi Paul... Looks like it's me who learn from you :) But the positive side is, I am forced to re-read about inline assembly :D > finally translated into this: > > movl %1,%0 > > or > > movl %%fs:%1,%0 > > (that macro__percpu_seg() means "" on a non-SMP machine, or > "%%fs:" on a SMP machine.) > >

Re: what is a changeset ?

2007-08-02 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Aug 02, 2007 at 07:48:27PM +0300, Ramagudi Naziir wrote: > > A changeset is a combination of changes to files in the (git) > > repository. It usually contains a couple of patches, but in git it can > > also be used to change file mode (make cer

Re: what is a changeset ?

2007-08-02 Thread Ramagudi Naziir
> A changeset is a combination of changes to files in the (git) > repository. It usually contains a couple of patches, but in git it can > also be used to change file mode (make certain files executable, for > example). so every commit in git is a changeset ? thank you naziir -- To unsubscribe f

Re: passing command line arguments to kernel module

2007-08-02 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Aug 02, 2007 at 07:28:22AM +0100, hari krishna angadi wrote: Please fix your mailer, it completely messes up all indentation. I've reindented it by hand to make it readable again. > in user program we pass command line parameters in my case >

Re: what is a changeset ?

2007-08-02 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Aug 02, 2007 at 05:52:21PM +0300, Ramagudi Naziir wrote: > LWN quote: "Well over 500 changesets have been merged into the > mainline git repository since -rc1". > > What does the term "changeset" mean ? a patch ? a set of patches ? > how is it

Re: passing command line arguments to kernel module

2007-08-02 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Aug 02, 2007 at 02:30:09PM +0200, Andre Haupt wrote: > 2. Do you want to read and write files from kernel space (your command >line arguments imply this)? File access from kernel space is >(though theoretically possible) a very dangerou

what is a changeset ?

2007-08-02 Thread Ramagudi Naziir
LWN quote: "Well over 500 changesets have been merged into the mainline git repository since -rc1". What does the term "changeset" mean ? a patch ? a set of patches ? how is it ? thank you naziir -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED

Re: passing command line arguments to kernel module

2007-08-02 Thread Andre Haupt
On Thu, Aug 02, 2007 at 07:28:22AM +0100, hari krishna angadi wrote: > hi all, Hi, answers below > > in user program we pass command line parameters in my case >>for example : i pass 1st arguement as script and other > arguements >> $ ../Bin/Readdata id20 norma

Re: about the macro "current" of i386 machines

2007-08-02 Thread 李一
Thank you, Mulyadi! In my opinion, the expanded the macro will be: extern __typeof__(struct task_struct *) per_cpu_current_task; ... __typeof__(per_cpu_current_task) __ret; switch (sizeof(per_cpu_current_task)) ... case 4:\