Re: Question on initrd and initramfs

2012-10-05 Thread Ezequiel Garcia
Hello,

On Sun, Sep 30, 2012 at 5:01 AM, Mulyadi Santosa
 wrote:
> Hi Tobi...
>
> On Sun, Sep 30, 2012 at 1:10 AM, Tobias Boege  wrote:
>> Have you read Documentation/filesystems/ramfs-rootfs-initramfs.txt? I didn't
>> but there are some eye-catching statements:
>>
>> 1. initramfs becomes a rootfs (l. 86)
>> 2. rootfs is a special instance of ramfs (l. 73)
>> 3. ramfs cannot be turned off (l. 29ff)
>>
>> This means that initramfs cannot be turned off.
>>
>> 4. initramfs is a gzipped cpio archive and contained within the kernel
>>(l. 85) and so is the cpio extractor code (l. 166f)
>> 5. initramfs is automatically loaded as rootfs (l. 86)
>
> Interesting catch, Tobi. for sure sometimes I am too lazy to read
> the documentation.
>

Just wanted to add something fresh. I'm reading through ramfs sources:

$ wc -l fs/ramfs/*.c
   55 fs/ramfs/file-mmu.c
  267 fs/ramfs/file-nommu.c
  289 fs/ramfs/inode.c
  611 total

600 lines! This is really readable! There's even a note from Linus
saying it's a nice template
code to read as a fs starting point.

Interesting, uh?

Ezequiel

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


enabling config_wireless_ext

2012-10-05 Thread captain
Sorry Confused. I'm building from the latest 3.6 kernel from git in 
order to be able to submit patches. Well if I get that far. I'm running 
the built on my netbook but I'm having problems building my wifi drivers 
against the 3.6.0 kernel. Basically I've got an error:


error: 'struct net_device' has no member named 'wireless_handlers'

Which is fair enough if you look in the kernel source 
include/linux/netdevice.h there's a "'#ifdef CONFIG_WIRELESS_EXT"


So this is easy all I have to do is enable that switch and rebuild the 
kernel. You might not believe it but that's were I come unstuck. I did a 
search in "make menuconfig" for that switch and it does provide some 
info but normally when I do a search the help tells me where to find it. 
(Which is a God send.) So searching for it is finding it but not giving 
me suitable help on where it is in the menu structure.


I then decided that I'd search for it in the .config file. Can't find it 
in there either.


This is a mailing list for newbies and I know this is a stupid question 
but can anybody advise me on where that switch is in make menuconfig?


I did find this page out there but that's pointing at Kconfig in source 
code not where it is in the menus:


http://cateee.net/lkddb/web-lkddb/WIRELESS_EXT.html
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: how to process data recvd from a device that wont give interrupts

2012-10-05 Thread devendra.aaru
On Fri, Oct 5, 2012 at 2:32 AM, Kshemendra KP  wrote:
>
> Hi Devendra,
>
>  In the kernel thread if you continuously in a loop read a register it
> will increase
> the CPU usage. After every register read if data is not ready call a
> schedule() (or related
> call). This may help to reduce CPU utilization
>

[please no top posting],

I Know, i didn't say i use copy_from(to)user in the softirqs. its
wrong, and you can use the copy to (from) user in a different context,
ie our fops callbacks.

coming to threads,

these are also one and the same as your timers,

and your threading is wrong, since there is only register read, should
be checking at every 10 - 20 msec,
so coming back to timers :) no?

anyways thanks for letting me know .

>

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


Re: IPSec/IPv6 test gets unexpected ENOBUFS on connect on linux 3.2

2012-10-05 Thread Manavendra Nath Manav
On Mon, Oct 1, 2012 at 11:49 AM, Bhushan Kumar
 wrote:
> HI,
>
> I am getting the below mentioned  error  for Linux kernel  3.2.18.i am
> looking for patch for the same. If anyone having suggestion\patch is  much
> appreciated . And I will be thankful for ASAP response.
>
>
>
> “ TCP/IPv6 test doing repeated heavy sending and reconnecting,  connect()s
>
> start to fail with ENOBUFS on the Linux 3.2.18. “
>

Your system is running low on memory. I don't think it is specific to
3.2.18. The kernel's buffers for I/O operations are all in use. In
GNU, this error is always synonymous with ENOMEM; you may get one or
the other from network operations.

-- 
Manavendra Nath Manav

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


New member queries..

2012-10-05 Thread shampavman.cg
Hi Guys,

I'm new to linux kernel development (only a few hrs old i may say). I've 
been working with the solaris kernel from the past year and now would 
like to concentrate on linux as well.
"My area of expertise is Filesystems".

Here are a few things i would like to know from you guys.
1.) I've looked at the bugzilla pages, how do i choose a bite sized bug 
to start with? (Is there such a concept at all?)
2.) I looked at kernelJanitors page as well hoping to find info but 
nothing much there .

Can anyone help me get started?

Thanks
Shampavman


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