Re: strange behaviour in syscall

2001-05-15 Thread Sourav Sen
> > Hello, > I know that this is a newbies question, but I didn't get any > answer in the newbies list, so I am posting it here. > > In 2.2.14, I have implemented a set of system calls(This is just > academic). The numbers are from 191 - 196. (The virgin source tree has > up to 190

strange behaviour in syscall

2001-05-15 Thread Sourav Sen
Hello, I know that this is a newbies question, but I didn't get any answer in the newbies list, so I am posting it here. In 2.2.14, I have implemented a set of system calls(This is just academic). The numbers are from 191 - 196. (The virgin source tree has up to 190 in entry.S).

atomic_set(skb_datarefp(skb),1)

2001-03-19 Thread Sourav Sen
Hi, I am extremely sorry to bother this group with this message. But I am really unable to understand the following. So it would be very kind of you if you clarify this. In 2.2.16, in the function alloc_skb(), atomic_set(skb_datarefp(skb),1) is there. Now skb_datarefp() returns

kernel panic on 2.2.16

2001-03-13 Thread Sourav Sen
. Plz. help. thanks sourav SOURAV SENMSc(Engg.) CSA IISc BANGALORE URL : www2.csa.iisc.ernet.in/~sourav --- - To unsubscribe from this list

2.4.2-ac

2001-03-07 Thread Sourav Sen
gcc is egcs-2.91.66. The running kernel is 2.2.14-5.0. thanks sourav SOURAV SENMSc(Engg.) CSA IISc BANGALORE URL : www2.csa.iisc.ernet.in/~sourav ROOM NO : N-78 TEL :(080)309-2454(HOSTEL) (080)309-2906

Re: sk_buff in 2.4.0

2001-03-05 Thread Sourav Sen
In the patch by David S. Miller, copy_from_user() is still there (Line 14360 in zerocopy-2.4.0-1.diff). So which copy is reduced? Can anyone explain kindly. thanks sourav On Mon, 5 Mar 2001, Albert D. Cahalan wrote: > > My question is: Is the state of the art same in 2.4.0, ie. is > > prot

sk_buff in 2.4.0

2001-03-05 Thread Sourav Sen
a still has to reside contiguously? Or header and data may be non-contiguous and the driver does scatter/gather. I am starting off in 2.4.0 , plz. help. -- sourav -------- SOURAV SENMSc(Engg.) CSA IISc

kiobuff

2001-02-13 Thread Sourav Sen
Hello, Can someone please give me some initial info or pointer regarding kiobuff, what is it all about and its purpose etc.. regards sourav - To unsubscribe from this list: send the line "unsubscribe linux-

Module

2001-01-08 Thread Sourav Sen
idea whats going wrong? -sourav SOURAV SENMSc(Engg.) CSA IISc BANGALORE URL : www2.csa.iisc.ernet.in/~sourav ROOM NO : N-78 TEL :(080)309-2454(HOSTEL) (080)309-2906 (COMP LAB

Kdb for modules

2001-01-07 Thread Sourav Sen
Hi, For using kdb I have done the following: 1) upgrade modutils using modutils-2.3.11-1.i386.rpm 2) patched the source using kdb-v0.6-2.2.13 as I am using linux-2.2.16.(I don't know, this kdb for 2.2.13 works for linux-2.2.16, I haven't used it exten

Re: is eth header is not transmitted

2001-01-03 Thread Sourav Sen
kes place from skb->data and not from head. So is hh_hdr not transmitted?? Another question is why in sock_alloc_send_skb() , 15 is added to length field? Sorry to disturb u like this :) sourav On Thu, 4 Jan 2001, Andi Kleen wrote: > On Thu, Jan 04, 2001 at 09:0

is eth header is not transmitted

2001-01-03 Thread Sourav Sen
Hi, In the function ip_build_xmit(), immediately after sk_alloc_send_skb(), skb_reserve(skb, hh_len) is called. Now skb_reserve(skb,len) only increment the data pointer and tail pointer by len amt. Now in a particular hard_start_xmit() say for rtl8139, the data transfer is takin

sock_alloc_send_skb

2001-01-03 Thread Sourav Sen
Hi, why in sock_alloc_send_skb(sk, length+hh_len+15,0,flags&MSG_DONTWAIT, &err) 15 is added to the length of the the data of the socket. Here length=data_len+ip_hdr+udp_hdr all we need is hrd_hdr ie hh_len which is being added here, why that 15 is needed? Sourav - To u

iph

2001-01-02 Thread Sourav Sen
Hi, I want to know what the field, ihl in the struct iphdr is there for, I mean its function and the values it takes in different condition. Specifically, what is the condition when ihl>5. (See ip_input.c , line 497, depending on if ihl>5, some code is getting executed.) I am talking of

Whats the problem

2000-12-30 Thread Sourav Sen
X showinfo.o : showinfo.c $(CC) $(MODCFLAGS) -c showinfo.c Thanks Sourav -------- SOURAV SENMSc(Engg.) CSA IISc BANGALORE URL : www2.csa.iisc.ernet.in/~sourav ROOM NO : N-78 TEL :(080)3

module programing

2000-12-29 Thread Sourav Sen
Any good updated for module programing? Rubini seems to be too outdated :( ~sourav - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

How to write patches

2000-12-29 Thread Sourav Sen
Hi, This question may seem naive, but can anyone tell me if there is any structured way of writing patches? I mean suppose I want to implement some kernel mechanism, and I define my data structures etc. and made most of the code as loadable module to start with, but still I am having to chang

why both kernel lock as well as semaphore

2000-12-23 Thread Sourav Sen
In many parts of the kernel, I have seen both semaphore is taken (eg. down(¤t->mm->mmap_sem)) as well as kernel lock (lock_kernel()) is also taken, why both are required? Whats the purpose of each? ~sourav - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

whats happening

2000-12-23 Thread Sourav Sen
In some parts of the kernel code I find expression like len = (len + ~PAGE_MASK) & PAGE_MASK ; Whats happening to len? ~sourav - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkm

Wiring down Pages

2000-12-21 Thread Sourav Sen
the flags field in the struct page, I can do it, am I right?) sourav SOURAV SENMSc(Engg.) CSA IISc BANGALORE URL : www2.csa.iisc.ernet.in/~sourav ROOM NO : N-78 TEL :(080)309-2454(HOSTEL) (080)309-2906