Re: kmem_cache_init

2013-03-14 Thread Prabhu nath
kmem_cache_init() will create generalized caches from where kmalloc() will allocate memory. vfs_caches_init() will create specialized caches related to VFS, like, dentry, inode_cache, mnt_cache Regards, Prabhunath G Linux Trainer Bangalore On Fri, Mar 15, 2013 at 10:08 AM, ishare wrote: >

kmem_cache_init

2013-03-14 Thread ishare
the function kmem_cache_init() is allocating which area for whom to use ? what is the difference comparing with vfs_caches_init() ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listi

Re: networking question

2013-03-14 Thread Rami Rosen
Hi, Can you post your client and server code? rgs, Rami Rosen http://ramirose.wix.com/ramirosen On Thu, Mar 14, 2013 at 12:55 PM, devendra.aaru wrote: > Hey all, > > I have got a strange bug(?) while testing the multicasting server and client. > > I have done only the INADDR_ANY bind in server

Re: Need of different memory zones

2013-03-14 Thread Mulyadi Santosa
On 3/13/13, Niroj Pokhrel wrote: > Hi All, > > I have been studying Memory Management in linux. But I am confused with the > division of different ZONE. The use of ZONE_DMA and ZONE_NORMAL is fine. > But I am confused with ZONE_HIGHMEM, if the system is 32 bit then why can't > it map 4GB memory (2

When to use blk_end_request_* routines.

2013-03-14 Thread Pranay Kumar Srivastava
Hi, I'm using SLES11-SP1 kernel 2.6.32 .12-0.7 I wrote a block driver for an in-memory disk. The driver seems to work fine however sometimes when I try to unload the driver the machine freezes, the module_exit code looks like the following, /*We take no more requests!*/ spin_lock_irqsa

networking question

2013-03-14 Thread devendra.aaru
Hey all, I have got a strange bug(?) while testing the multicasting server and client. I have done only the INADDR_ANY bind in server and client adds its IP_MULTICAST_IF to 224.0.0.1 , surprisingly i recvd pkts from the client with out joining using IP_ADD_MEMBERSHIP. Is that a bug? or as we li

Unlocking task_list read lock before performing a sleepy operation

2013-03-14 Thread Pranami Bhattacharya
Dear All, I was trying the following and had a doubt. >From my kernel module I want to iterate over task list and do some sleepy operation for all the process for which my task->flag is set .I know by holding read_lock(tasklist_lock)/rcu_read_lock I should not be performing any sleepy operation