Re: Eudyptula Challenge Task 01

2014-06-16 Thread Kristofer Hallin
Attached a ZIP file? If you _read_ the instructions for the challenge,
it states that 'but for all tasks you can't send base64
attachments, as I don't know what to do with them. Just a "normal"
attachment, in text form, is fine, and preferred.' Just insert patches
as plain text, nothing else.

On Tue, Jun 17, 2014 at 6:20 AM, sanjeev sharma
 wrote:
> I have sent exercise attachment in zip file and may be i.e root cause
> of the problem .BTW i did select Plain text mode option but it didn't
> work and i get complain from
> Little Penguin.
>
> Regars
> Sanjeev Sharma
>
> On Mon, Jun 16, 2014 at 9:55 PM, Manish Katiyar  wrote:
>> I just use the attached script from command line to send mails via
>> gmail. Its much more convenient than configuring a new client. You'll
>> need to change your mail and eudyptula id.
>> Thanks -
>> Manish
>>
>>
>> On Mon, Jun 16, 2014 at 8:44 AM, Oussama Jabbari
>>  wrote:
>>> On Mon, Jun 16, 2014 at 5:31 PM, Chen Weixiang  
>>> wrote:
 On Mon, Jun 16, 2014 at 05:07:05PM +0530, sanjeev sharma wrote:
> is Really we need to use Email Client ? Don't we have another option
> using GMAIL ?
>>>
>>> I don't know why but I never had any problem sending my first
>>> exercises attachments (I'm now at 8) with gmail webmail.
>>> I just select "Plain text mode" and it's ok...
>>>
>>>

 I met the same problem when I sent first mail to Eudyptula Challenge.
 I thinke below two links are helpful for configuring mutt mail client:

 http://nongeekshandbook.blogspot.fi/2009/02/mutt-email-client-that-sucks-less.html
 http://nongeekshandbook.blogspot.fi/2009/03/mutt-color-configuration.html

>
> Regards
> Sanjeev Sharma
>
> On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma  
> wrote:
> >
> > On 13-06-2014 AM 04:10, Nada Saif wrote:
> >> Hi,
> >> Which email client is best to submit tasks . I use gmail , and I get a
> >> problem with attachment base64!?
> >>
> >> What you suggest me to use!
> >>
> >> Regards,
> >> N.G
> > Thunderbird
> >
> > Regards,
> > Abhishek Sharma
> >
> >> On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava  
> >> wrote:
> >>> On Tue, Apr 29, 2014 at 8:40 PM, me storage  
> >>> wrote:
>  Hi i every one i am new to linux kernel programming .I am 
>  participating in
>  Eudyptula Challenge .Recently i submitted my solutions to Task 01 
>  but i
>  gives me reply like the below
> 
>  "Please read the requirements for the Makefile and allow the module 
>  to be
>  built against any kernel source tree on the filesystem, not just 
>  those
>  kernels that happened to be installed in /lib/ at some point in 
>  time."
> 
>  And my make file is like this
> 
>  ifneq ($(KERNELRELEASE),)
>    obj-m += helloworld.o
>    else
>    default
> >>> I hope you understand the -C switch
> >>> :
>  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>    clean:
>  make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
>    end
> 
> >>> If not then find it out and see what you need to change.
> >>>
>  So can any please tell me how to allow the module to be built 
>  against any
>  kernel source tree on the filesystem?
>  or can any one pleae tell me what does it mean?
>  Thank you
> 
>  ___
>  Kernelnewbies mailing list
>  Kernelnewbies@kernelnewbies.org
>  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> >>>
> >>>
> >>> --
> >>>  ---P.K.S
> >>>
> >>> ___
> >>> Kernelnewbies mailing list
> >>> Kernelnewbies@kernelnewbies.org
> >>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> >
> > ---
> > This email is free from viruses and malware because avast! Antivirus 
> > protection is active.
> > http://www.avast.com
> >
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

 --
 Best regards,
 Chen Weixiang (Alex)


 ___
 Kernelnew

Re: Re: How to capture channel 2 's frames when wireless interface was set to channel 1

2014-06-16 Thread jiangtao.jit
Hi Henry:

Thanks for your reply.

--   

Tao Jiang (姜涛)

jiangtao@gmail.com
2014-06-17

-
发件人:Henry Hallam 
发送日期:2014-06-17 09:12
收件人:jiangtao.jit
抄送:Kernel Newbies
主题:Re: How to capture channel 2 's frames when wireless interface was
 set to channel 1

On Mon, Jun 16, 2014 at 2:36 AM, jiangtao.jit  wrote:
> Bandwidth is 20MHz, between channel 1 and 2 is 5MHz, 20MHz include channel 2.
> So it's can capture channel 2's frames when wireless card is set in channel 1.
> Is that right?

Hi Tao,

I don't know anything about the kernel wireless drivers.  But I do
know something about RF communications, and based on that I would say
"probably not".  I would be extremely surprised if it were possible to
see frames transmitted on channel 2 when the radio is tuned to channel
1.

Traffic on channel 2 could interfere with and corrupt traffic on
channel 1, but that doesn't mean you can successfully decode the
frames.

Cheers, Henry

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread sanjeev sharma
I have sent exercise attachment in zip file and may be i.e root cause
of the problem .BTW i did select Plain text mode option but it didn't
work and i get complain from
Little Penguin.

Regars
Sanjeev Sharma

On Mon, Jun 16, 2014 at 9:55 PM, Manish Katiyar  wrote:
> I just use the attached script from command line to send mails via
> gmail. Its much more convenient than configuring a new client. You'll
> need to change your mail and eudyptula id.
> Thanks -
> Manish
>
>
> On Mon, Jun 16, 2014 at 8:44 AM, Oussama Jabbari
>  wrote:
>> On Mon, Jun 16, 2014 at 5:31 PM, Chen Weixiang  
>> wrote:
>>> On Mon, Jun 16, 2014 at 05:07:05PM +0530, sanjeev sharma wrote:
 is Really we need to use Email Client ? Don't we have another option
 using GMAIL ?
>>
>> I don't know why but I never had any problem sending my first
>> exercises attachments (I'm now at 8) with gmail webmail.
>> I just select "Plain text mode" and it's ok...
>>
>>
>>>
>>> I met the same problem when I sent first mail to Eudyptula Challenge.
>>> I thinke below two links are helpful for configuring mutt mail client:
>>>
>>> http://nongeekshandbook.blogspot.fi/2009/02/mutt-email-client-that-sucks-less.html
>>> http://nongeekshandbook.blogspot.fi/2009/03/mutt-color-configuration.html
>>>

 Regards
 Sanjeev Sharma

 On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma  
 wrote:
 >
 > On 13-06-2014 AM 04:10, Nada Saif wrote:
 >> Hi,
 >> Which email client is best to submit tasks . I use gmail , and I get a
 >> problem with attachment base64!?
 >>
 >> What you suggest me to use!
 >>
 >> Regards,
 >> N.G
 > Thunderbird
 >
 > Regards,
 > Abhishek Sharma
 >
 >> On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava  
 >> wrote:
 >>> On Tue, Apr 29, 2014 at 8:40 PM, me storage  
 >>> wrote:
  Hi i every one i am new to linux kernel programming .I am 
  participating in
  Eudyptula Challenge .Recently i submitted my solutions to Task 01 but 
  i
  gives me reply like the below
 
  "Please read the requirements for the Makefile and allow the module 
  to be
  built against any kernel source tree on the filesystem, not just those
  kernels that happened to be installed in /lib/ at some point in time."
 
  And my make file is like this
 
  ifneq ($(KERNELRELEASE),)
    obj-m += helloworld.o
    else
    default
 >>> I hope you understand the -C switch
 >>> :
  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
    clean:
  make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
    end
 
 >>> If not then find it out and see what you need to change.
 >>>
  So can any please tell me how to allow the module to be built against 
  any
  kernel source tree on the filesystem?
  or can any one pleae tell me what does it mean?
  Thank you
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 
 >>>
 >>>
 >>> --
 >>>  ---P.K.S
 >>>
 >>> ___
 >>> Kernelnewbies mailing list
 >>> Kernelnewbies@kernelnewbies.org
 >>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 >> ___
 >> Kernelnewbies mailing list
 >> Kernelnewbies@kernelnewbies.org
 >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 >
 >
 > ---
 > This email is free from viruses and malware because avast! Antivirus 
 > protection is active.
 > http://www.avast.com
 >
 >
 > ___
 > Kernelnewbies mailing list
 > Kernelnewbies@kernelnewbies.org
 > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>> --
>>> Best regards,
>>> Chen Weixiang (Alex)
>>>
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to capture channel 2 's frames when wireless interface was set to channel 1

2014-06-16 Thread Henry Hallam
On Mon, Jun 16, 2014 at 2:36 AM, jiangtao.jit  wrote:
> Bandwidth is 20MHz, between channel 1 and 2 is 5MHz, 20MHz include channel 2.
> So it's can capture channel 2's frames when wireless card is set in channel 1.
> Is that right?

Hi Tao,

I don't know anything about the kernel wireless drivers.  But I do
know something about RF communications, and based on that I would say
"probably not".  I would be extremely surprised if it were possible to
see frames transmitted on channel 2 when the radio is tuned to channel
1.

Traffic on channel 2 could interfere with and corrupt traffic on
channel 1, but that doesn't mean you can successfully decode the
frames.

Cheers, Henry

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Lxc vs openvz

2014-06-16 Thread Rami Rosen
Hi,
In fact, the LXC project itself was not added to the kernel. It is the
underlying components, cgroups and namespaces, which were added to the
kernel. The work on cgroups started several years ago (by google), and
the work on namespaces started event before. The OpenVZ project, on
the other hand, is based on a proprietary project (Virtuozzo). The are
many
heavy features which OpenVZ added, and it will take probably years so
that the project will be fully in mainline.

If you want to learn more about this fascinating subject, you can read
two very detailed documents (pdf) with over 200 pages about
Linux Containers, LXC, OpenVZ, Docker, CRIU,
Namespaces and cgroups, in my website: http://ramirose.wix.com/ramirosen.


Regards,
Rami Rosen
http://ramirose.wix.com/ramirosen





On Mon, Jun 16, 2014 at 5:10 PM, Grzegorz Dwornicki  wrote:
> Hi
>
> Can anyone point me why lxc was added to the kernel instead of openvz? The
> point in time will be sufficient as I will look in the lkml archives.
>
> Grzegorz
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread Manish Katiyar
I just use the attached script from command line to send mails via
gmail. Its much more convenient than configuring a new client. You'll
need to change your mail and eudyptula id.
Thanks -
Manish


On Mon, Jun 16, 2014 at 8:44 AM, Oussama Jabbari
 wrote:
> On Mon, Jun 16, 2014 at 5:31 PM, Chen Weixiang  wrote:
>> On Mon, Jun 16, 2014 at 05:07:05PM +0530, sanjeev sharma wrote:
>>> is Really we need to use Email Client ? Don't we have another option
>>> using GMAIL ?
>
> I don't know why but I never had any problem sending my first
> exercises attachments (I'm now at 8) with gmail webmail.
> I just select "Plain text mode" and it's ok...
>
>
>>
>> I met the same problem when I sent first mail to Eudyptula Challenge.
>> I thinke below two links are helpful for configuring mutt mail client:
>>
>> http://nongeekshandbook.blogspot.fi/2009/02/mutt-email-client-that-sucks-less.html
>> http://nongeekshandbook.blogspot.fi/2009/03/mutt-color-configuration.html
>>
>>>
>>> Regards
>>> Sanjeev Sharma
>>>
>>> On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma  
>>> wrote:
>>> >
>>> > On 13-06-2014 AM 04:10, Nada Saif wrote:
>>> >> Hi,
>>> >> Which email client is best to submit tasks . I use gmail , and I get a
>>> >> problem with attachment base64!?
>>> >>
>>> >> What you suggest me to use!
>>> >>
>>> >> Regards,
>>> >> N.G
>>> > Thunderbird
>>> >
>>> > Regards,
>>> > Abhishek Sharma
>>> >
>>> >> On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava  
>>> >> wrote:
>>> >>> On Tue, Apr 29, 2014 at 8:40 PM, me storage  
>>> >>> wrote:
>>>  Hi i every one i am new to linux kernel programming .I am 
>>>  participating in
>>>  Eudyptula Challenge .Recently i submitted my solutions to Task 01 but i
>>>  gives me reply like the below
>>> 
>>>  "Please read the requirements for the Makefile and allow the module to 
>>>  be
>>>  built against any kernel source tree on the filesystem, not just those
>>>  kernels that happened to be installed in /lib/ at some point in time."
>>> 
>>>  And my make file is like this
>>> 
>>>  ifneq ($(KERNELRELEASE),)
>>>    obj-m += helloworld.o
>>>    else
>>>    default
>>> >>> I hope you understand the -C switch
>>> >>> :
>>>  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>>>    clean:
>>>  make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
>>>    end
>>> 
>>> >>> If not then find it out and see what you need to change.
>>> >>>
>>>  So can any please tell me how to allow the module to be built against 
>>>  any
>>>  kernel source tree on the filesystem?
>>>  or can any one pleae tell me what does it mean?
>>>  Thank you
>>> 
>>>  ___
>>>  Kernelnewbies mailing list
>>>  Kernelnewbies@kernelnewbies.org
>>>  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>> 
>>> >>>
>>> >>>
>>> >>> --
>>> >>>  ---P.K.S
>>> >>>
>>> >>> ___
>>> >>> Kernelnewbies mailing list
>>> >>> Kernelnewbies@kernelnewbies.org
>>> >>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>> >> ___
>>> >> Kernelnewbies mailing list
>>> >> Kernelnewbies@kernelnewbies.org
>>> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>> >
>>> >
>>> > ---
>>> > This email is free from viruses and malware because avast! Antivirus 
>>> > protection is active.
>>> > http://www.avast.com
>>> >
>>> >
>>> > ___
>>> > Kernelnewbies mailing list
>>> > Kernelnewbies@kernelnewbies.org
>>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> --
>> Best regards,
>> Chen Weixiang (Alex)
>>
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


gmail
Description: Binary data
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linked lists for userspace programs in Linux

2014-06-16 Thread Valdis . Kletnieks
On Mon, 16 Jun 2014 21:35:20 +0800, Chandrasekaran Sivakumar said:

> Apologies from me. I didn't explain my problem properly. I am working on
> modifying the linux kernel's scheduler framework to include support for
> real-time algorithms. In order to give user inputs such as number of tasks,
> their execution cost, period, deadline etc, I am creating an userspace
> program. Then this program would transfer control to the kernel to perform
> system calls for creation and execution of tasks.

Nope.  Wrong answer.  You can't do real-time that way.

If the userspace code gets hung in a loop or something, your in-kernel
scheduler can get stuck with old/stale information, and as a result incorrectly
schedule the next process, causing a realtime window to be totally blown.

And if all the userspace code is doing is writing config information for
which tasks get what priorities, you should be instead extending the
sched_setscheduler() syscall, or possibly adding a /proc/PID/
interface.



pgpWvY_SgRSE0.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread Oussama Jabbari
On Mon, Jun 16, 2014 at 5:31 PM, Chen Weixiang  wrote:
> On Mon, Jun 16, 2014 at 05:07:05PM +0530, sanjeev sharma wrote:
>> is Really we need to use Email Client ? Don't we have another option
>> using GMAIL ?

I don't know why but I never had any problem sending my first
exercises attachments (I'm now at 8) with gmail webmail.
I just select "Plain text mode" and it's ok...


>
> I met the same problem when I sent first mail to Eudyptula Challenge.
> I thinke below two links are helpful for configuring mutt mail client:
>
> http://nongeekshandbook.blogspot.fi/2009/02/mutt-email-client-that-sucks-less.html
> http://nongeekshandbook.blogspot.fi/2009/03/mutt-color-configuration.html
>
>>
>> Regards
>> Sanjeev Sharma
>>
>> On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma  
>> wrote:
>> >
>> > On 13-06-2014 AM 04:10, Nada Saif wrote:
>> >> Hi,
>> >> Which email client is best to submit tasks . I use gmail , and I get a
>> >> problem with attachment base64!?
>> >>
>> >> What you suggest me to use!
>> >>
>> >> Regards,
>> >> N.G
>> > Thunderbird
>> >
>> > Regards,
>> > Abhishek Sharma
>> >
>> >> On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava  
>> >> wrote:
>> >>> On Tue, Apr 29, 2014 at 8:40 PM, me storage  
>> >>> wrote:
>>  Hi i every one i am new to linux kernel programming .I am participating 
>>  in
>>  Eudyptula Challenge .Recently i submitted my solutions to Task 01 but i
>>  gives me reply like the below
>> 
>>  "Please read the requirements for the Makefile and allow the module to 
>>  be
>>  built against any kernel source tree on the filesystem, not just those
>>  kernels that happened to be installed in /lib/ at some point in time."
>> 
>>  And my make file is like this
>> 
>>  ifneq ($(KERNELRELEASE),)
>>    obj-m += helloworld.o
>>    else
>>    default
>> >>> I hope you understand the -C switch
>> >>> :
>>  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>>    clean:
>>  make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
>>    end
>> 
>> >>> If not then find it out and see what you need to change.
>> >>>
>>  So can any please tell me how to allow the module to be built against 
>>  any
>>  kernel source tree on the filesystem?
>>  or can any one pleae tell me what does it mean?
>>  Thank you
>> 
>>  ___
>>  Kernelnewbies mailing list
>>  Kernelnewbies@kernelnewbies.org
>>  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> 
>> >>>
>> >>>
>> >>> --
>> >>>  ---P.K.S
>> >>>
>> >>> ___
>> >>> Kernelnewbies mailing list
>> >>> Kernelnewbies@kernelnewbies.org
>> >>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> >> ___
>> >> Kernelnewbies mailing list
>> >> Kernelnewbies@kernelnewbies.org
>> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> >
>> >
>> > ---
>> > This email is free from viruses and malware because avast! Antivirus 
>> > protection is active.
>> > http://www.avast.com
>> >
>> >
>> > ___
>> > Kernelnewbies mailing list
>> > Kernelnewbies@kernelnewbies.org
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> --
> Best regards,
> Chen Weixiang (Alex)
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread Chen Weixiang
On Mon, Jun 16, 2014 at 05:07:05PM +0530, sanjeev sharma wrote:
> is Really we need to use Email Client ? Don't we have another option
> using GMAIL ?

I met the same problem when I sent first mail to Eudyptula Challenge.
I thinke below two links are helpful for configuring mutt mail client:

http://nongeekshandbook.blogspot.fi/2009/02/mutt-email-client-that-sucks-less.html
http://nongeekshandbook.blogspot.fi/2009/03/mutt-color-configuration.html

> 
> Regards
> Sanjeev Sharma
> 
> On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma  wrote:
> >
> > On 13-06-2014 AM 04:10, Nada Saif wrote:
> >> Hi,
> >> Which email client is best to submit tasks . I use gmail , and I get a
> >> problem with attachment base64!?
> >>
> >> What you suggest me to use!
> >>
> >> Regards,
> >> N.G
> > Thunderbird
> >
> > Regards,
> > Abhishek Sharma
> >
> >> On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava  
> >> wrote:
> >>> On Tue, Apr 29, 2014 at 8:40 PM, me storage  
> >>> wrote:
>  Hi i every one i am new to linux kernel programming .I am participating 
>  in
>  Eudyptula Challenge .Recently i submitted my solutions to Task 01 but i
>  gives me reply like the below
> 
>  "Please read the requirements for the Makefile and allow the module to be
>  built against any kernel source tree on the filesystem, not just those
>  kernels that happened to be installed in /lib/ at some point in time."
> 
>  And my make file is like this
> 
>  ifneq ($(KERNELRELEASE),)
>    obj-m += helloworld.o
>    else
>    default
> >>> I hope you understand the -C switch
> >>> :
>  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>    clean:
>  make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
>    end
> 
> >>> If not then find it out and see what you need to change.
> >>>
>  So can any please tell me how to allow the module to be built against any
>  kernel source tree on the filesystem?
>  or can any one pleae tell me what does it mean?
>  Thank you
> 
>  ___
>  Kernelnewbies mailing list
>  Kernelnewbies@kernelnewbies.org
>  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> >>>
> >>>
> >>> --
> >>>  ---P.K.S
> >>>
> >>> ___
> >>> Kernelnewbies mailing list
> >>> Kernelnewbies@kernelnewbies.org
> >>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> >
> > ---
> > This email is free from viruses and malware because avast! Antivirus 
> > protection is active.
> > http://www.avast.com
> >
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Best regards,
Chen Weixiang (Alex)


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Lxc vs openvz

2014-06-16 Thread Grzegorz Dwornicki
Hi

Can anyone point me why lxc was added to the kernel instead of openvz? The
point in time will be sufficient as I will look in the lkml archives.

Grzegorz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linked lists for userspace programs in Linux

2014-06-16 Thread Chandrasekaran Sivakumar
Hi,
Apologies from me. I didn't explain my problem properly. I am working on
modifying the linux kernel's scheduler framework to include support for
real-time algorithms. In order to give user inputs such as number of tasks,
their execution cost, period, deadline etc, I am creating an userspace
program. Then this program would transfer control to the kernel to perform
system calls for creation and execution of tasks. Thats why I had to
recompile the kernel. I had planned to use linked list to contain the
multiple execution cost values in each task (for a mixed criticality task
system). As the control is transferred to the kernel, the linked list
should be accessed from the kernel side also. As you had suggested, I had
written my own implementation of linked lists. Please advise me on how to
make this implementation (contained in a header file) common to both kernel
and userspace ? Thank you for your time.

Regards,
chandru


On Mon, Jun 16, 2014 at 11:24 AM,  wrote:

> On Sat, 14 Jun 2014 02:38:19 +0800, Chandrasekaran Sivakumar said:
>
> > I wanted to use linked lists in one of my userspace programs in Linux.
>
> Userspace.  Remember that word.
>
> > 1. I used the modified version of list implementation given in
> > http://isis.poly.edu/kulesh/stuff/src/klist/list.h for my userspace
> > program. But when I compiled the kernel, there were errors showing
> > 'redefinition of struct', 'conflicting types' etc.
>
> You're recompiling the kernel for what reason?  You seem to be confused
> regarding kernel space versus userspace programming...
>
> > 2. When I tried to use list.h as such without any modifications, linked
> > list functions in my userspace program were not identified by the
> compiler
> > and displayed as undefined.
>
> This sounds like you need an introductory C class.
> Did you remember to #include them?
>
> Oh, by the way, keep in mind that the Linux kernel "linked list"
> is actually a circularly linked list - as a result, treating it as a
> normal linked list (particularly when checking for empty list or
> end-of-list)
> is likely to result in hilarity and hijinks for all...
>
> > Would it be okay to modify the variable/function names in a copy of
> list.h
> > and use it in the userspace program ?
>
> You'd probably be better off learning basic data structures well enough
> to write your own implementation.
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Fwd: Question about USB hotplug

2014-06-16 Thread Simon Guo
At 2014/6/14 22:36, Greg KH wrote:
> On Sat, Jun 14, 2014 at 10:58:53AM +0800, Simon Guo wrote:
>> Forward to USB mail alias for the USB question.
>>
>>  Original post 
>> Subject: Question about USB hotplug
>> Date: Sat, 14 Jun 2014 09:59:45 +0800
>> Sender: Simon Guo 
>> Receiver: kernelnewbies@kernelnewbies.org, wei.guo.si...@gmail.com
>>
>> Hi, dear list,
>>
>> I want to be clear about the USB hotplug procedure.
>>
>> I read "Linux Device Driver" and "Documentation/usb/hotplug.txt", and
>> google much. Per my understanding, the USB hotplug works as following:
>> 1) Insertion of physical U-disk will trigger a hardware interrupt. And
>> interrupt handler (installed by USB bus driver?) will create kobj at /sys.
>> 2) According to Linux device model, the creation of kobj will raise
>> hotplug event (implemented in USB bus driver).
>> 3) user space hotplug helper is invoked to handle hotplug event. Hotplug
>> helper will read "modules.usbmaps" and decide to load which USB driver.
>> If there are many drivers matching the device, they will all be loaded?
>> 4) udev will create approparite dev under /dev according to rules defined.
>> Please correct me if I am wrong in the above.
>>
>> I am using Ubuntu 11, and with my own build kernel version 3.15.0.
>
> Please ask on a Ubuntu mailing list, they are the only distro that
> people have problems with this, so they must be doing something "odd"
> compared to everyone else.
>

Thanks Greg. The feedback from Ubuntu list indicates udev(which was 
developed by you) is used to handle hotplug, and the procedure I listed 
was out-of-date.

Whereas "Documentation/usb/hotplug.txt" doesn't mention udev at all.

BR,
Simon


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread Aruna Hewapathirane
>> is Really we need to use Email Client ? Don't we have another option
>> using GMAIL ?

Hi Sanjeev,

Please *read* the initial welcome email you received when you signed up for
the Eudyptula Challenge. It 'specifically' states no HTML email, or
base64-mime attachments and tells us, *don't* use Gmail or Microsoft
Exchange for this set of tasks.

'I' also had difficulty understanding the reason behind this, so going
through the link below helped me to understand why ?

What is wrong with sending HTML or MIME messages?


And this will help configuring most email clients to send plain text :
http://email.about.com/od/netiquettetips/qt/When-In-Doubt-Send-Plain-Text-Email-Not-Fancy-Html.htm

( Keep in mind though plain text attachments might still be sent using
base64 )

You can send email using git and through the command line if you have
sendmail or postfix configured correctly.

When there are delays in response time from Little Penguin, it is because
the 'human's behind the scripts have other things to do ? They may have
extremely busy work schedules and commitments just like us ? So have
patience from experince I can say it may take a while but Little will
always get back to you :)

Good luck and have fun !

Aruna



On Mon, Jun 16, 2014 at 7:37 AM, sanjeev sharma 
wrote:
>
> is Really we need to use Email Client ? Don't we have another option
> using GMAIL ?
>
> Regards
> Sanjeev Sharma
>
> On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma 
wrote:
> >
> > On 13-06-2014 AM 04:10, Nada Saif wrote:
> >> Hi,
> >> Which email client is best to submit tasks . I use gmail , and I get a
> >> problem with attachment base64!?
> >>
> >> What you suggest me to use!
> >>
> >> Regards,
> >> N.G
> > Thunderbird
> >
> > Regards,
> > Abhishek Sharma
> >
> >> On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava 
wrote:
> >>> On Tue, Apr 29, 2014 at 8:40 PM, me storage 
wrote:
>  Hi i every one i am new to linux kernel programming .I am
participating in
>  Eudyptula Challenge .Recently i submitted my solutions to Task 01
but i
>  gives me reply like the below
> 
>  "Please read the requirements for the Makefile and allow the module
to be
>  built against any kernel source tree on the filesystem, not just
those
>  kernels that happened to be installed in /lib/ at some point in
time."
> 
>  And my make file is like this
> 
>  ifneq ($(KERNELRELEASE),)
>    obj-m += helloworld.o
>    else
>    default
> >>> I hope you understand the -C switch
> >>> :
>  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>    clean:
>  make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
>    end
> 
> >>> If not then find it out and see what you need to change.
> >>>
>  So can any please tell me how to allow the module to be built
against any
>  kernel source tree on the filesystem?
>  or can any one pleae tell me what does it mean?
>  Thank you
> 
>  ___
>  Kernelnewbies mailing list
>  Kernelnewbies@kernelnewbies.org
>  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> >>>
> >>>
> >>> --
> >>>  ---P.K.S
> >>>
> >>> ___
> >>> Kernelnewbies mailing list
> >>> Kernelnewbies@kernelnewbies.org
> >>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> >
> > ---
> > This email is free from viruses and malware because avast! Antivirus
protection is active.
> > http://www.avast.com
> >
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread sanjeev sharma
so Installation of Email client is must.Let me see if any other way
and probably we should have another way.

Regards
Sanjeev Sharma

On Mon, Jun 16, 2014 at 5:38 PM, Sudip Mukherjee
 wrote:
> On Mon, Jun 16, 2014 at 5:22 PM, Kristofer Hallin
>  wrote:
>> You should not use Gmail since it will BASE64-encode your attachments
>> (patches should be sent as plain text). Use a sane client like Alpine
>> or Mutt instead.
>
> And thunderbird also working fine , if u select plain text mode .
>
>
>>
>> On Mon, Jun 16, 2014 at 1:47 PM, Sudip Mukherjee
>>  wrote:
>>> On Mon, Jun 16, 2014 at 5:07 PM, sanjeev sharma
>>>  wrote:
 is Really we need to use Email Client ? Don't we have another option
 using GMAIL ?

>>>
>>> I have tried to send in plain text mode using gmail , but it was
>>> rejected by "Little Penguin"
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread Sudip Mukherjee
On Mon, Jun 16, 2014 at 5:22 PM, Kristofer Hallin
 wrote:
> You should not use Gmail since it will BASE64-encode your attachments
> (patches should be sent as plain text). Use a sane client like Alpine
> or Mutt instead.

And thunderbird also working fine , if u select plain text mode .


>
> On Mon, Jun 16, 2014 at 1:47 PM, Sudip Mukherjee
>  wrote:
>> On Mon, Jun 16, 2014 at 5:07 PM, sanjeev sharma
>>  wrote:
>>> is Really we need to use Email Client ? Don't we have another option
>>> using GMAIL ?
>>>
>>
>> I have tried to send in plain text mode using gmail , but it was
>> rejected by "Little Penguin"
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread Kristofer Hallin
You should not use Gmail since it will BASE64-encode your attachments
(patches should be sent as plain text). Use a sane client like Alpine
or Mutt instead.

On Mon, Jun 16, 2014 at 1:47 PM, Sudip Mukherjee
 wrote:
> On Mon, Jun 16, 2014 at 5:07 PM, sanjeev sharma
>  wrote:
>> is Really we need to use Email Client ? Don't we have another option
>> using GMAIL ?
>>
>
> I have tried to send in plain text mode using gmail , but it was
> rejected by "Little Penguin"
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread Sudip Mukherjee
On Mon, Jun 16, 2014 at 5:07 PM, sanjeev sharma
 wrote:
> is Really we need to use Email Client ? Don't we have another option
> using GMAIL ?
>

I have tried to send in plain text mode using gmail , but it was
rejected by "Little Penguin"

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-16 Thread sanjeev sharma
is Really we need to use Email Client ? Don't we have another option
using GMAIL ?

Regards
Sanjeev Sharma

On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma  wrote:
>
> On 13-06-2014 AM 04:10, Nada Saif wrote:
>> Hi,
>> Which email client is best to submit tasks . I use gmail , and I get a
>> problem with attachment base64!?
>>
>> What you suggest me to use!
>>
>> Regards,
>> N.G
> Thunderbird
>
> Regards,
> Abhishek Sharma
>
>> On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava  wrote:
>>> On Tue, Apr 29, 2014 at 8:40 PM, me storage  wrote:
 Hi i every one i am new to linux kernel programming .I am participating in
 Eudyptula Challenge .Recently i submitted my solutions to Task 01 but i
 gives me reply like the below

 "Please read the requirements for the Makefile and allow the module to be
 built against any kernel source tree on the filesystem, not just those
 kernels that happened to be installed in /lib/ at some point in time."

 And my make file is like this

 ifneq ($(KERNELRELEASE),)
   obj-m += helloworld.o
   else
   default
>>> I hope you understand the -C switch
>>> :
 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
   clean:
 make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
   end

>>> If not then find it out and see what you need to change.
>>>
 So can any please tell me how to allow the module to be built against any
 kernel source tree on the filesystem?
 or can any one pleae tell me what does it mean?
 Thank you

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

>>>
>>>
>>> --
>>>  ---P.K.S
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: non-static init in a basic kernel module

2014-06-16 Thread sanjeev sharma
Hi,

To prevent namespace pollution static is being used but this problem
is nothing to do with static and you should share Error Logs to know
exact problem also pointed by Greg.

Regards
Sanjeev Sharma


On Mon, Jun 9, 2014 at 12:58 PM, Warren Turkal  wrote:
> Hey,
>
> I was writing a basic hello world module. I am using Ubuntu, so I
> installed linux-headers package that corresponded to my kernel. It's
> strange because all of the examples that I saw (including from modules
> in the kernel itself) show things like the following for the init function:
>
> static int netcat_init(void)
> {
>  ...
>  return 0;
> }
>
> module_init(netcat_init);
>
> However, I was not able to get it to work with "static". My
> hello_world_init function looks like the following:
>
> int __init hello_world_init(void)
> {
>  ...
>  return 0;
> }
>
> module_init(hello_world_init);
>
> The command that is used to make the kernel module is the one suggested
> in Documentation/kbuild/modules.txt. It looks like this:
> make -C /lib/modules/`uname -r`/build M=$PWD
>
> Does anyone know why the "static" version would not work?
>
> Thanks,
> wt
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


How to capture channel 2 's frames when wireless interface was set to channel 1

2014-06-16 Thread jiangtao.jit
Hi ALL:

How to capture channel 2 's frames when wireless interface was set to channel 1.
Wireless card is in mode 11g.
Bandwidth is 20MHz, between channel 1 and 2 is 5MHz, 20MHz include channel 2.
So it's can capture channel 2's frames when wireless card is set in channel 1.
Is that right?
Thank you.


--

Tao Jiang (姜涛)

jiangtao@gmail.com
2014-06-16
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linked lists for userspace programs in Linux

2014-06-16 Thread Robert P. J. Day
On Sun, 15 Jun 2014, valdis.kletni...@vt.edu wrote:

> Oh, by the way, keep in mind that the Linux kernel "linked list" is
> actually a circularly linked list - as a result, treating it as a
> normal linked list (particularly when checking for empty list or
> end-of-list) is likely to result in hilarity and hijinks for all...

   once upon a time, i wrote a piece on how kernel linked lists work,
i think it's still accurate.

http://crashcourse.ca/introduction-linux-kernel-programming/intermission-lets-talk-about-linked-lists-and-containerof-free

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies