Re: [PATCH] /proc/scsi/map

From: Pavel Machek (pavel@ucw.cz)
Date: Tue Jul 02 2002 - 20:01:02 EST


Hi!

> [ We could also create a swap interface that we skip over when we notify
> these interfaces. Then we walk the tree and save state to the swap
> devices. Then, tell the swap devices to suspend, which can notify the
> devices to actually go to sleep....maybe..]

No.

swsusp works like this

        stop all devices
        save state
        atomically copy memory into my_big_buffer
        start all devices
        write my_big_buffer into swap
        poweroff

It does not need explicit knowledge of where swap is. And I believe it
is reasonable that way.
                                                                        Pavel

-- 
(about SSSCA) "I don't say this lightly.  However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:11 EST