Re: Can small writes generate a lot of faults?

2013-04-22 Thread Mulyadi Santosa
Hi :) On Sat, Apr 20, 2013 at 4:42 AM, Daniel Hilst Selli wrote: > AFAIK, major page faults are generated when data that is not yet present > on RAM is loaded from disk, but in this case data is being write do > disk, I can't > see how writes can generate faults, but still, it seems that is > hap

Alternative for API system() in multi-threaded app

2013-04-22 Thread Praveen kumar
I was trying to replace system() API in my multi-threaded app as it is suggested not to any calls in multi-threaded app which uses fork(). When I was going through the man pages of fork()..in the Notes section I found * "Since version 2.3.3, rather than invoking the kernel's fork() system

Fwd: Building kernel modules with debuginfo and printing line numbers in kernel oops message / coredump

2013-04-22 Thread Sankar P
On Mon, Apr 22, 2013 at 6:00 AM, arshad hussain wrote: > > > > On Mon, Apr 22, 2013 at 5:58 AM, arshad hussain > wrote: >> >> >> >> >> On Fri, Apr 19, 2013 at 11:55 PM, Sankar P >> wrote: >>> >>> Hi, >>> >>> I have written a kernel module which I build using: >>> >>> Makefile (edited a bit) >>>

Re: Something about Redhat

2013-04-22 Thread Robert Clove
i entered in single user mode like this https://www.youtube.com/watch?v=13fzdO_ndcA On Sun, Apr 21, 2013 at 3:38 PM, Grzegorz Dwornicki wrote: > If you added to boot command S or 1 during boot time yust type command > init 3 or init 5. I can provide more details on how to do it but please > tell

I2C: kernel & userspace drivers : using i2c-stub

2013-04-22 Thread Sagar Padhye
Hi, [USING : Ubuntu 12.04 LTS] I am trying to learn I2C subsystem. I havent found much of well documented things that can help a newbie on google. I just chose to read the linux kernel documentation txts. I read the way kernel can interact with i2c through both SMBus calls & raw file op calls (i

Fwd: [RFC]CPU in SYSFS: what information should be written to /sys/devices/system/cpu/probe to add cpu In X86?

2013-04-22 Thread Ren Zhen
Hi, everybody: What information should be written to /sys/devices/system/cpu/probe to add a cpu In X86? And, what information should be written to /sys/devices/system/cpu/release to remove a cpu In X86? I have read the /Documentation/ABI/testing/sysfs-devices-system-cpu. It says th

Re: Can small writes generate a lot of faults?

2013-04-22 Thread Greg Freemyer
Mulyadi Santosa wrote: >Hi :) > >On Sat, Apr 20, 2013 at 4:42 AM, Daniel Hilst Selli > wrote: >> AFAIK, major page faults are generated when data that is not yet >present >> on RAM is loaded from disk, but in this case data is being write do >> disk, I can't >> see how writes can generate fault

Re: I2C: kernel & userspace drivers : using i2c-stub

2013-04-22 Thread anish singh
does I2c-stub create the /dev node?If it is not creating then you have to do it yourself. On Mon, Apr 22, 2013 at 5:11 PM, Sagar Padhye wrote: > Hi, > > [USING : Ubuntu 12.04 LTS] > > I am trying to learn I2C subsystem. I havent found much of well documented > things that can help a newbie on g

Writing device drivers in Linux: A brief tutorial

2013-04-22 Thread Zack
I thought this might be useful: http://www.freesoftwaremagazine.com/articles/drivers_linux -- Zachary ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Can small writes generate a lot of faults?

2013-04-22 Thread Gaurav Jain
Page-faults by a process on writing OR reading are really not that different. In both cases, an attempt is made to read the physical address (corresponding to the virtual address) from the page-table BEFORE the *read *or *write *machine level instructions are executed. So, if the address to which w

process context value

2013-04-22 Thread Shraddha Kamat
I was reading about PowerPC-64 address translation and stumbled upon a term 'process context value' - googled but could not find much details about this - please help. regards, Shraddha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org htt

Re: I2C: kernel & userspace drivers : using i2c-stub

2013-04-22 Thread Sagar Padhye
I tried to use '*mknod* /dev/i2c-*0 c 89 0' and then tried to use the device. but still when I try to use device it gives IO error (so I concluded, I created incorrect device)* On Mon, Apr 22, 2013 at 7:41 PM, anish singh wrote: > does I2c-stub create the /dev node?If it is not creating then you