Re: is there still an active kernel janitors project?

2010-11-24 Thread Denis Kirjanov
So the idea has already been announced. It is better to send a patch with the suggested "fix" for list stuff. No? :) Thanks On Wed, Nov 24, 2010 at 2:53 PM, piyush moghe wrote: > I am also interested. > > Regards, > Piyush > > On Mon, Nov 22, 2010 at 6:39 PM, Kaspter Ju wrote: >> >> On 11/21/20

Re: what is equivalent to ether_setup in 8139too.c as given in LDD page 504

2010-11-05 Thread Denis Kirjanov
This functions are helpers for the generic link layers(L2) params setup. For example: /** * ether_setup - setup Ethernet network device * @dev: network device * Fill in the fields of the device structure with Ethernet-generic values. */ void ether_setup(struct net_device *dev) { dev->

Re: is this link valid

2010-11-03 Thread Denis Kirjanov
There are many good examples in drivers/net. drivers/net/pci-skeleton.c for example. I think that it is a not big problem to compare the text from the link with the current state of the device drivers. On Wed, Nov 3, 2010 at 9:42 AM, Tapas Mishra wrote: > On Wed, Nov 3, 2010 at 8:19 AM, Mulyadi S

Re: Traversing task list

2010-10-24 Thread Denis Kirjanov
Right, task list traversal must be performed under a tasklist_lock. On Sun, Oct 24, 2010 at 8:03 PM, Juan Rafael Garcia Blanco wrote: > Hi, > I'm just traversing the process chain, but I'm not sure if I should protect > this traverse by disabling some interrupts or doing something. I mean, some

Re: Laptop extras for unsupported laptop brand

2010-10-11 Thread Denis Kirjanov
You can start reading the source code. drivers/platform/x86/asus-laptop.c for example On Mon, Oct 11, 2010 at 11:47 AM, Ali Polatel wrote: > On Sun, 10 Oct 2010 23:43:24 +0700, Mulyadi Santosa > wrote: >> Hi Ali... >> >> On Sun, Oct 10, 2010 at 23:09, Ali Polatel wrote: >> > Well xbacklight do

Re: Some IPv6 project for Linux

2010-10-06 Thread Denis Kirjanov
I think that you could _try_ to ask in netfilter-devel and netdev about this. 2010/10/6 Łukasz Czyż : > Hello! > > I am looking for advice. I have to write some programming project that > is connected with IPv6 and I decided to do something for Linux (as I > learn Linux kernel actually it would be

Re: branch annotation

2010-08-28 Thread Denis Kirjanov
Read the following post with a great explanation of the __builtin_expect feature. http://linuxkernelpanic.blogspot.com/2010/06/using-static-branch-prediction-with-gcc.html On Sat, Aug 28, 2010 at 8:51 PM, James Bond wrote: > Hi, > before asking this question I had googled > http://www.google.co.i

Re: Some kernel-related talks available here.

2010-06-29 Thread Denis Kirjanov
On Tue, Jun 29, 2010 at 4:06 PM, Peter Teoh wrote: > https://www.redhat.com/promo/summit/2010/presentations/ > Nice papers. Thanks for the link. -- Regards, Denis -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at ht

Re: Linux Network Architecture

2010-06-16 Thread Denis Kirjanov
You can start _reading_ netdev mailing list if you want to track/__understand__ recent changes in networking. As Eric Dumazet wrote: >>> I suggest you read the last patches (say .. about 10.000 of them), to >>> have an idea of things we did during last years. >>> >>> keywords : RCU, multiqueue, RPS

Re: Dim netbook screen

2010-06-14 Thread Denis Kirjanov
o you're looking for? > > On Mon, Jun 14, 2010 at 1:26 PM, Denis Kirjanov wrote: >> Please, provide more info about your device. >> We can't tell you more unless you provide more detailed info. >> On Mon, Jun 14, 2010 at 6:24 PM, Noam Postavsky wrote: >>>

Re: Dim netbook screen

2010-06-14 Thread Denis Kirjanov
Please, provide more info about your device. We can't tell you more unless you provide more detailed info. On Mon, Jun 14, 2010 at 6:24 PM, Noam Postavsky wrote: > I have a netbook which apparently isn't one those linux supports > dimming for. How difficult would it be to add support? > > Noam > >

Re: Schedule() call in driver context.

2010-02-19 Thread Denis Kirjanov
Yeah, schedule() (and __sched prefixed) function call needed when we are waiting for some events. It would de wasteful to lose CPU cycles while checking condition what we are waiting for. So, instead we can just to tell the kernel to switch to another task, and wake up our task when waiting conditi

Re: ieee papers

2010-02-18 Thread Denis Kirjanov
Recently there are too many messages not related to the Linux kernel topic. And this is a bad sign :/ On Thu, Feb 18, 2010 at 7:04 PM, Mulyadi Santosa wrote: > On Thu, Feb 18, 2010 at 4:24 PM, Krushnaal Pai > wrote: > > Anybody got any full sample ieee papers/abstracts?... Plz >

Re: router + kernel networking

2009-12-18 Thread Denis Kirjanov
Very useful place about general networking http://www.linuxfoundation.org/collaborate/workgroups/networking. -- Regards, Denis

Re: Checking status of userspace processes

2009-10-21 Thread Denis Kirjanov
I think that you can use one of the functions from include/linux/pid.h like this one: struct pid *find_pid_ns(int nr, struct pid_namespace *ns) 292{ 293struct hlist_node *elem; 294struct upid *pnr; 295 296hlist_for_each_entry_rcu(pnr, elem, 297&

Re: 32 bit processors / 64 bit processors

2009-10-20 Thread Denis Kirjanov
> > Just did a comparison test but it tells me otherwise. But I'm not sure if > the test case if correct, can someone improve it? > On a 64bit CentOS: > [r...@yyan ~]# more test.c > #include > > int main () > { >printf ("%d\n", sizeof(int)); >return 0; > } > [r...@yyan ~]# gcc test.c > [r.

Re: How to check whether executing in atomic context?

2009-10-14 Thread Denis Kirjanov
Sure, http://lwn.net/Articles/274695/ On Wed, Oct 14, 2009 at 12:09 PM, Leonidas . wrote: > Hi List, > > I am aware of in_interrupt() call which can be used to check current > context and take action accordingly. > > Is there any api which can help figure out whether we are executing > while hol

waking up processes while holding spinlock

2009-10-08 Thread Denis Kirjanov
Hello dear all! Suppose, we have the following pseudo code: spin_lock(&some_lock); some_func(); spin_unlock(&some_lock); some_fun() { . wake_up_interruptibe_sync(&wait_queue); } Is this correct behavior or not? This is a call chain: wake_up_interruptible_sync ---> wake_up_s

Re: Changing Kernel 3g / 1g memory split

2009-10-08 Thread Denis Kirjanov
> > Interesting. I've previously used 2G/2G split (some years ago, before 64b >> was prevalent) quite a bit and never needed to recompile existing binaries >> and libraries on the distro, and never had issues. Perhaps the default >> addresses are quite low (well below 2G)? Also, how does ASLR ( >>

Re: strange code in linux kernel

2009-10-05 Thread Denis Kirjanov
On Tue, Oct 6, 2009 at 7:34 AM, Rajat Jain wrote: > Hi List, > > I found that there are some weird looking instances in kernel where a > function has been DEFINED (as opposite to DECLARED) using and "extern" > keyword. For e.g., the following code in arch/alpha/include/asm/io.h: > > extern inline

Re: how does kernel manages stack for threads?

2009-09-24 Thread Denis Kirjanov
On Thu, Sep 24, 2009 at 3:23 PM, CP YEH wrote: > Thank you very much for your answer. If you don't mind, let me ask you > little bit further. > > I can see from the code that stack is being shared by different > threads and what I am curious about is the way kernel manages this. > In other words,

Re: kernel boot delay

2009-09-11 Thread Denis Kirjanov
e Newly > Introduced Boot Tracer > February 13, 2009 (23MB) >MP3 Download > ( > https://linuxlink.timesys.com/files/podcasts/mp3/Episode_040_LinuxLink_Radio.mp3 > ) >OGG Vorbis Download > > > > On Fri, Sep 11, 2009 at 12:29 PM, Denis Kirjanov > wrote: >

Re: kernel boot delay

2009-09-11 Thread Denis Kirjanov
Did not know about this feature :/ But thx!, I'll try it On Fri, Sep 11, 2009 at 7:30 PM, Peter Teoh wrote: > On Fri, Sep 11, 2009 at 2:25 PM, Denis Kirjanov > wrote: > > Hi dear list. > > I encountered the following problem: from time to time I see a delay when >

kernel boot delay

2009-09-10 Thread Denis Kirjanov
Hi dear list. I encountered the following problem: from time to time I see a delay when booting the kernel (~30s). It doesn't happen regularly. I would like to ask you for advice as to what may be the reason for such behavior? Latter on I can attach kernel boot log and config. -- Regards, Denis

Re: pause(), wait() and infinity

2009-07-31 Thread Denis Kirjanov
On Fri, Jul 31, 2009 at 8:43 AM, Andy Dalton wrote: > Denis, > > You have a race condition. If the parent process gets scheduled first and > executes the pause() before the child runs and sends the SIGUSR1 signal, you > get the behavior you're expecting. However, if the child gets scheduled > fir

pause(), wait() and infinity

2009-07-30 Thread Denis Kirjanov
Good times. Look at the code. What do you think will be the result? #include #include #include void trap1(int sig) { fprintf(stderr, "signal\n"); } int main() { int stat; signal(SIGUSR1, trap1); if (fork()) { pause(); wait(&stat)

Re: array declaration inside init function causing kernel panic

2009-03-08 Thread Denis Kirjanov
On Sun, Mar 8, 2009 at 2:00 PM, yogeshwar sonawane wrote: > Thank daniel. > > How to know such limit ? some kernel info is available ? > > As i mentioned in my mail, i am using 2.6.9-42.ELsmp kernel > (RHEL4-update 4,x86_64) on intel platform. > Other intel node with RHEL4-update 5(2.6.9-55.ELlarg

Re: "Professional Linux Kernel Architecture"?

2009-01-04 Thread Denis Kirjanov
I have a copy. It's well, but too big) Recently was published book about TCP/IP stack implementation in Linux: http://www.amazon.com/Architecture-Design-Implementation-Linux-Practitioners/dp/0470147733/ref=sr_1_3?ie=UTF8&s=books&qid=1231089656&sr=8-3 I think that the book should be good. -- Reg

BogoMIPS and magical values

2008-12-17 Thread Denis Kirjanov
Hi! The function calibrate_delay() from init/main.c comtains the following line: printk(KERN_CONT "%lu.%02lu BogoMIPS (lpj=%lu)\n", loops_per_jiffy/(50/HZ), (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy); Please explain how bogoMIPS is computed. Why loops_per_jiff

Re: Network Programming

2008-12-07 Thread Denis Kirjanov
Hi Yousef! Look at http://www.linuxfoundation.org/en/Net:TODO -- Regards, Denis

Re: kernelnewbies

2008-10-24 Thread Denis Kirjanov
Hello Ajay. Also try to start reading the book Linux device drivers. It's free and can be downloaded from http://lwn.net/Kernel/LDD3/ -- Regards, Denis

Re: __udivdiv3 undefined

2008-04-23 Thread Denis Kirjanov
Try to use do_div() function from asm/div64.h -- Regards, Denis

Re: __initdata query

2008-03-17 Thread Denis Kirjanov
I fully agree with Adil. It would be great to see this in the form of article on kernelnewbies.orgwebsite. -- Regards, Denis