Re: When is to preempt safe?

2011-10-09 Thread Michael Blizek
Hi! On 00:24 Sun 09 Oct , Parmenides wrote: 2011/10/8 Michael Blizek mic...@michaelblizek.twilightparadox.com: Hi! There are 2 different kind of locks: Those which can be preempted (mutex and semaphores) and those which cannot (spinlocks). Spinlocks do busy waiting until the lock

Re: When is to preempt safe?

2011-10-07 Thread Michael Blizek
Hi! On 19:27 Fri 07 Oct , Parmenides wrote: Hi, Preemption has two cases: user preemption and kernel preemption. I have tow questions about them. 1. According to Love, If the kernel is returning to user-space, it knows it is in a safe quiescent state. In other words, if it is safe

Re: Purpose of using __be16 inside a data structure?

2011-08-14 Thread Michael Blizek
Hi! On 08:41 Sun 14 Aug , ?? wrote: Hi all, Please tell me the difference between using unsigned short and __be16 to declear a variable in a data structure. For example, in include/net/inet_sock.h, struct inet_sock is decleared as struct inet_sock {     __be16

Re: Linux module for causing a system hard lock-up

2011-06-08 Thread Michael Blizek
Hi! On 20:27 Wed 08 Jun , limp wrote: Hi all, I am trying to hard lockup my Linux system (Debian) for evaluating some crash report mechanism. ... int init_module(void) { unsigned long flags; static spinlock_t lock; spin_lock_init(lock); spin_lock_irqsave(lock,

Re: Self modifying code in ARM 11 architectures

2011-05-25 Thread Michael Blizek
Hi! On 10:55 Wed 25 May , Mulyadi Santosa wrote: Hi... On Tue, May 24, 2011 at 17:15, Ashok Babu asho...@gmail.com wrote: So here my questions/doubts : 1) Is'nt it the kernel itself is self modifying code with lots of function pointers ? AFAIK, yes there are many.. however, some

Re: is the tickless kernel now the standard?

2011-05-15 Thread Michael Blizek
Hi! On 11:01 Sun 15 May , Greg KH wrote: On Sun, May 15, 2011 at 01:48:43PM -0400, Robert P. J. Day wrote: ... ok, good to know. i assume, then, that it's fairly pointless to use the value of jiffies for anything that requires even moderate accuracy. i was poking around the timer

Re: is the tickless kernel now the standard?

2011-05-15 Thread Michael Blizek
On 06:42 Mon 16 May , Michael Blizek wrote: ... What does it mean this highres timer are not available during system startup? Are they running with lower resolution or not at all? Sorry, I should have read to the end... From Documentation/timers/highres.txt Up to the point where hrtimers

Re: Interested in Working on Linux kernel projects in TCP/IP stack

2011-04-07 Thread Michael Blizek
Hi! On 23:40 Wed 06 Apr , murugan k wrote: Hi, I am Murugan. I am interested in working on projects involving TCP/IP stack of linux kernel. I have basic knowledge of Netfilters in linux.If there are any such projects kindly let me know. Have you seen http://www.bufferbloat.net/ ?

Re: Interpreting call trace

2011-04-06 Thread Michael Blizek
Hi! On 15:56 Wed 06 Apr , Daniel Baluta wrote: ... For example having: [ 3992.316/0] [81297751] ? neigh_create+0x2f1/0x6b0 [ 3992.321/0] [81374f00] ? _read_unlock_bh+0x10/0x20 means that _read_unlock_bh has been called finished ? Or it has been interrupted by next

Re: Requirement of Linux port

2011-03-31 Thread Michael Blizek
Hi! On 11:30 Fri 01 Apr , Jacky Lam wrote: Hi All, Is there any document on web summarized the hardware (especially, CPU) that a Linux depends on. For example, if a CPU doesn't support misaligned access (no exception will be generated when misalignment access), can Linux run on

Re: Query regarding work queue

2011-02-18 Thread Michael Blizek
Hi! On 01:27 Sat 19 Feb , Leelakrishna A wrote: Hi, In LDD 3rd edition it is given that, In a multiprocessor system work queues will run on the same processor from which they are submitted. Also each work queue has one or more dedicated kernel threads which runs the functions submitted

Re: Asking advice for graduate study

2011-01-26 Thread Michael Blizek
Hi! On 21:02 Tue 25 Jan , cheng chen wrote: Hi, all! I am going to further my education in graduate school of Master of Science degree. I am interested in network, but I am not sure what direction I should choose and which professional books I should read. Therefore I ask for help and

Re: Memory leak with dev_add_pack()

2011-01-24 Thread Michael Blizek
Hi! On 22:59 Sun 23 Jan , anish kumar wrote: ... ps:I dont have vanilla kernel where i could have changed the intitialisation files to remount while booting and could have controlled the list of process running on the system. In android we are doing that in init.rc file need to check in

Re: Casting sock to inet_timewait_sock

2011-01-14 Thread Michael Blizek
Hi! On 16:47 Fri 14 Jan , Daniel Baluta wrote: Hello, When casting sock to inet_timewait_sock ([1]) it is assumed that sock points to a structure of type inet_timewait_sock. Is there a way to check if a sock struct wraps around a inet_timewait_sock struct? By looking at the callers

Re: Kernel newbies archives of yesteryears

2011-01-03 Thread Michael Blizek
Hi! On 15:42 Mon 03 Jan , Prabhu nath wrote: Dear All, Where do we find the archives of kernelnewbies of yesteryears ? Currently, I find only Dec 2010 and Jan 2011. The archives I refered is http://lists.kernelnewbies.org/pipermail/kernelnewbies/ This is probably