Re: MAX limit of file descriptor

2013-02-11 Thread michi1
Hi! On 14:24 Mon 11 Feb , valdis.kletni...@vt.edu wrote: > On Sat, 09 Feb 2013 13:10:47 +0800, horseriver said: ... > >In network programing ,what is the essential for the maximum of > > connections > >dealed per second > ... > So the *real* question > becomes "how many times per sec

Re: Use of copy_to_user() and copy_from_user() functions

2013-02-11 Thread anish singh
On Tue, Feb 12, 2013 at 9:24 AM, Chetan Nanda wrote: > > > > On Mon, Feb 11, 2013 at 5:25 PM, anish singh > wrote: >> >> >> >> On Mon, Feb 11, 2013 at 4:51 PM, पारस wrote: >> > Hi All, >> > >> > To read/write data to user-space from kernel-space we use copy_from_user() >> > and copy_to_user() f

Re: Use of copy_to_user() and copy_from_user() functions

2013-02-11 Thread Chetan Nanda
On Mon, Feb 11, 2013 at 5:25 PM, anish singh wrote: > > > On Mon, Feb 11, 2013 at 4:51 PM, पारस wrote: > > Hi All, > > > > To read/write data to user-space from kernel-space we use > copy_from_user() > > and copy_to_user() functions. > > > > What is the use of these function? > > Why kernel can't

Re: MAX limit of file descriptor

2013-02-11 Thread Valdis . Kletnieks
On Mon, 11 Feb 2013 06:07:38 +0800, horseriver said: > Actually , my question comes from network performance ,I want to know ,in > per second ,the > maximum of tcp connections that can be dealed with by my server. That will be *highly* dependent on what your server code does with each connect

Re: MAX limit of file descriptor

2013-02-11 Thread Valdis . Kletnieks
On Sat, 09 Feb 2013 13:10:47 +0800, horseriver said: >In one process ,what is the max number of opening file descriptor ? >Can it be set to infinite ? > >In network programing ,what is the essential for the maximum of > connections >dealed per second In general, you'll find that

Re: MAX limit of file descriptor

2013-02-11 Thread Mulyadi Santosa
On Mon, Feb 11, 2013 at 5:07 AM, horseriver wrote: > > > thanks! > > Actually , my question comes from network performance ,I want to know ,in > per second ,the > maximum of tcp connections that can be dealed with by my server. AFAIK, the only way to find out is by doing benchmark by your own

[PATCH] bind micmute led to capslock led on thinkpads

2013-02-11 Thread Jason A. Donenfeld
Hi folks, The attached patch binds the capslock light to the micmute light on my Thinkpad. It works really well. But it's definitely the wrong way to be doing things. There are two problems I'd like to solve a better way: 1) How do I find a pointer to the led_device struct for that led, so that

Re: Kernel code interrupted by Timer

2013-02-11 Thread Gaurav Jain
Well, my bad. I was wrong there. Your example was correct. Even in a multi-kernel like Barrelfish, each core manages only its own share of memory. RAM is explicitly partitioned between cores running on each kernel and any data structures that need to be shared across cores have to be replicated in

Re: Use of copy_to_user() and copy_from_user() functions

2013-02-11 Thread anish singh
On Mon, Feb 11, 2013 at 4:51 PM, पारस wrote: > Hi All, > > To read/write data to user-space from kernel-space we use copy_from_user() > and copy_to_user() functions. > > What is the use of these function? > Why kernel can't directly access user address and read/write on to it? what will happen if

Re: Use of copy_to_user() and copy_from_user() functions

2013-02-11 Thread Mandeep Sandhu
On Mon, Feb 11, 2013 at 4:51 PM, पारस wrote: > Hi All, > > To read/write data to user-space from kernel-space we use copy_from_user() > and copy_to_user() functions. > > What is the use of these function? > Why kernel can't directly access user address and read/write on to it? > Can any one explai

Re: error : insmod

2013-02-11 Thread Kristof Provost
On 2013-02-11 16:50:45 (+0530), sunil wrote: > when i executed the below line. i din't get what i suppose to > get...the message "hello, world".. > > did i miss any steps > sunil@ubuntu:~/test/drive$ sudo insmod helloworld.ko > The traces you've inserted in your kernel module do not print to std

Use of copy_to_user() and copy_from_user() functions

2013-02-11 Thread पारस
Hi All, To read/write data to user-space from kernel-space we use copy_from_user() and copy_to_user() functions. What is the use of these function? Why kernel can't directly access user address and read/write on to it? Can any one explain why kernel can't directly access the user-space address.

Re: error : insmod

2013-02-11 Thread sunil
Hi kristof, when i executed the below line. i din't get what i suppose to get...the message "hello, world".. did i miss any steps sunil@ubuntu:~/test/drive$ sudo insmod helloworld.ko On Mon, Feb 11, 2013 at 4:34 PM, Kristof Provost wrote: > On 2013-02-11 16:24:17 (+0530), sunil wrote: >> Have

Re: error : insmod

2013-02-11 Thread Kristof Provost
On 2013-02-11 16:24:17 (+0530), sunil wrote: > Have a look at this: > > donno wats happening: > > sunil@ubuntu:~/test/drive$ sudo rmmod helloworld > sunil@ubuntu:~/test/drive$ lsmod|grep hellow* > Binary file helloworld.ko matches > Binary file helloworld.o matches This doesn't actually do what

Re: error : insmod

2013-02-11 Thread Kristof Provost
On 2013-02-11 16:10:38 (+0530), sunil wrote: > -output > sunil@ubuntu:~/test/drive$ sudo insmod ./helloworld.ko > insmod: error inserting './helloworld.ko': -1 File exists > This means you've already loaded the module. Try 'sudo rmmod helloworld' to unload

Re: error : insmod

2013-02-11 Thread Kristof Provost
On 2013-02-11 15:24:08 (+0530), sunil wrote: > while inserting module to the linux kernel, m facing this problem > ---ERROR- > > sunil@ubuntu:~/test/drive$ insmod helloworld.ko > insmod: error inserting 'h

Re: error : insmod

2013-02-11 Thread Jeff Kirsher
On 02/11/2013 01:54 AM, sunil wrote: > hi all, > while inserting module to the linux kernel, m facing this problem > ---ERROR- > > sunil@ubuntu:~/test/drive$ insmod helloworld.ko > insmod: error inserting 'h

RE: error : insmod

2013-02-11 Thread Ashish_Bunkar
Try it through root access. Regards ASHU -Original Message- From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies-boun...@kernelnewbies.org] On Behalf Of sunil Sent: Monday, February 11, 2013 3:24 PM To: kernelnewbies@kernelnewbies.org Subject: error : insmod hi all, while

error : insmod

2013-02-11 Thread sunil
hi all, while inserting module to the linux kernel, m facing this problem ---ERROR- sunil@ubuntu:~/test/drive$ insmod helloworld.ko insmod: error inserting 'helloworld.ko': -1 Operation not permitted sunil