From: C.T.F. Jansen on
Greetings,
What does the daemon ksuspend_usb do ? I'm making a list of the
back ground processes and what they do then will post it here. Save others
hunting around for what what little there is.
Haven't found any lists on-line anywhere yet. Apparently there's an
O'Reilly book that lists daemons and functions but haven't see it anywhere
local.
Thanks in advance.

frank.jansen(a)actrix.gen.nz, ZL2TTS



--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Andrew Sackville-West on
On Sun, Nov 08, 2009 at 12:32:01PM +1300, C.T.F. Jansen wrote:
> Greetings,
> What does the daemon ksuspend_usb do ?
[...]

I *think* it monitors usb and suspends the usb subsystem when it's not
being used. This is a powersaving feature. But that is really only a
guess based on the name of the daemon and my own minimal knowledge
that such a thing is possible.

A
From: Emanoil Kotsev on
Andrew Sackville-West wrote:

> ksuspend_usb

it's not adaemon but a kernel process (thread)

look into ./drivers/usb/core/usb.c to learn more

/opt/software/linux-2.6.31.6# grep -r ksuspend_usb .
Двоичен файл ./drivers/usb/core/hcd.o съвпада
../drivers/usb/core/usb.c:struct workqueue_struct *ksuspend_usb_wq;
../drivers/usb/core/usb.c:static int ksuspend_usb_init(void)
../drivers/usb/core/usb.c: ksuspend_usb_wq =
create_freezeable_workqueue("ksuspend_usbd");
../drivers/usb/core/usb.c: if (!ksuspend_usb_wq)
../drivers/usb/core/usb.c:static void ksuspend_usb_cleanup(void)
../drivers/usb/core/usb.c: destroy_workqueue(ksuspend_usb_wq);
../drivers/usb/core/usb.c:#define ksuspend_usb_init() 0
../drivers/usb/core/usb.c:#define ksuspend_usb_cleanup() do {} while (0)
../drivers/usb/core/usb.c: retval = ksuspend_usb_init();
../drivers/usb/core/usb.c: ksuspend_usb_cleanup();
../drivers/usb/core/usb.c: ksuspend_usb_cleanup();

../drivers/usb/core/driver.c:
queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend,
../drivers/usb/core/driver.c:
queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend,
../drivers/usb/core/driver.c: queue_work(ksuspend_usb_wq,
&udev->autoresume);
../drivers/usb/core/hcd.c: queue_work(ksuspend_usb_wq,
&hcd->wakeup_work);



--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org