Re: Sysfs over network

2009-11-21 Thread Patrick
Le vendredi 20 novembre 2009 à 20:11 +0700, Mulyadi Santosa a écrit : Hi On 11/20/09, Patrick kpa_i...@yahoo.fr wrote: Does anybody have an idea ? How could I completely disable file caching or how could I do same result as touch but from the kernel on sysfs file ? Not a FUSE user

Sysfs over network

2009-11-20 Thread Patrick
caching or how could I do same result as touch but from the kernel on sysfs file ? Thanks in advance for your help Patrick -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

RE: Adding a kset in a kset

2009-02-06 Thread Patrick
On Thu, Feb 05, 2009 at 01:18:08PM +, PAtrick Gerber wrote: Hello all, I am working with kobject, kset and sysfs. I need, to show a complexe hierarchie, to add some kset in a kset. For that I use kobject embedded in the kset: child_kset = kset_create_and_add(name, NULL

Adding a kset in a kset

2009-02-05 Thread PAtrick Gerber
in the child list of the parent kset. When I add a kobject in a kset I set the kset field of the kobject for that, but I can't touch the kobject embedded in a kset... There is another technics for that ? Any help is welecome. Thanks in advance Patrick

leds driver

2009-02-03 Thread PAtrick Gerber
is never called. So I have nothing in /sys/class/leds. Do you have any idea why ? Of course the leds class is activated in my .config (as part of the kernel not a module). Thanks in advance for any help. Patrick -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies

Fw : Re: leds driver

2009-02-03 Thread PAtrick Gerber
Probably the driver/device name mismatch which has for effect that driver probe function is not being called. Can you post your driver for us to see what you did/are missing? With pleasure, see the attached code. Patrick leds-colibri.c Description: Binary data

Re : leds driver

2009-02-03 Thread PAtrick Gerber
inside the driver was enough. I will look this point tomorrow. Thanks Patrick -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
Hello,I would like to try to use sysfs_notify() / poll() mechanism from my driver to notify some events to my application. I'm looking for a tiny example showing the use of this mechanism. The driver side with sysfs_notify seems quite simple but I have absolutely no idea about the application

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
marek.beli...@gmail.com a écrit : De: Belisko Marek marek.beli...@gmail.com Objet: Re: sysfs_notify poll À: PAtrick Gerber kpa_i...@yahoo.fr Date: Mercredi 7 Janvier 2009, 13h59 Hi, On Wed, Jan 7, 2009 at 1:54 PM, PAtrick Gerber kpa_i...@yahoo.fr wrote: Ok thanks. Usefull example. But I have

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
if it supports poll (Nether 'poll' or 'select' return * an appropriate error code). When in doubt, set a suitable timeout value. */ --- En date de : Mer 7.1.09, Belisko Marek marek.beli...@gmail.com a écrit : De: Belisko Marek marek.beli...@gmail.com Objet: Re: sysfs_notify poll À: PAtrick

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
Date: Mercredi 7 Janvier 2009, 16h26 Hi, On Wed, Jan 7, 2009 at 4:20 PM, PAtrick Gerber kpa_i...@yahoo.fr wrote: I found some occurences of sysfs_notify in different driver (phidgetkit driver for example). As I sayd in my previous post now it's working. I can start poll on my attribute

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
Date: Mercredi 7 Janvier 2009, 15h46 Hi, On Wed, Jan 7, 2009 at 3:25 PM, PAtrick Gerber kpa_i...@yahoo.fr wrote: I am not sure but I had understanded that we need to implement the pool syscall, as described in ldd3 books, only for chardevices. For attributes in sysfs, the poll syscall

Asynchronous event from kernel to user space (by procfs or/and sysfs)

2009-01-05 Thread PAtrick Gerber
an idea of how the application can receive any kind of event from my driver ? signal ? uevent ? anything else ?Thanks in advance for every help usefull or not !Patrick

Re: virtual address space ?

2008-09-19 Thread patrick
linear address space. ? Each process gehts its independent 4GB linear address space. The mapping work is done by the MMU. HTH -- Patrick Kirsch http://spielux.de | Open Source Spiele, Bewertungen, Auftragsentwicklung -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies

Re: Machine hang - how to know what happens?

2008-06-10 Thread Patrick Kirsch
with it. Like mentioned before, check the hardware. Probably, I only guess, some background process triggers the hang, perhaps you can do a ps auxwf and send it to serial console or over network. Shreyansh Regards, -- Patrick Kirsch - Quality Assurance Department SUSE Linux Products GmbH GF: Markus Rex

Re: how to get current cs:eip value for some process while it is in kernel mode?

2008-06-06 Thread Patrick McManus
On Wed, 2008-06-04 at 15:34 +0200, Michal wrote: Frédéric Weisbecker [EMAIL PROTECTED] writes: You mean how to get your own kernel's task eip? No, I mean other process, not current one. I realize that eip changes, but my process gets stuck somewhere in the kernel for a longer while and I

Re: Why two stacks per process?

2008-04-24 Thread Patrick McManus
, another for irqs, and then tearing them up and down dynamically for these interrupted kernel code situations (and perhaps other situs?).. I guess that would work, but it certainly has some overhead. -Patrick -- www.ducksong.com -- To unsubscribe from this list: send an email with unsubscribe

Re: Why two stacks per process?

2008-04-24 Thread Patrick McManus
along those lines. Bad news. -Patrick -- www.ducksong.com -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ

Re: kernel preemption does not work

2008-04-11 Thread Patrick McManus
On Fri, 2008-04-11 at 09:40 -0700, bhanu nani wrote: code snippet is part of Kernel module. Test code: -- read() { if(down_interruptible()) return error; mdelay(1); up(); } This is my my read implementation of char