Re: Using IPC-calls in a device driver

Jeff Garzik (jgarzik@pobox.com)
Mon, 31 May 1999 15:38:27 -0400


Alan Cox wrote:
>
> > We are a couple of students trying to create a network memory pager on a
> > linux system. The pager is implemented as a device driver, which should be
> > mounted as swapping device. However, we rely heavily on inter process
> > communication. So far we have not been able to figure out how to use these
> > calls in the driver. Or even if it is possible at all.
>
> If you are swapping I doubt you can. A swap handler cannot do any memory
> allocations or may deadlock. Thats why we dont allow NFS swap for example.

Isn't this what the network block device driver does/allows already?
(CONFIG_BLK_DEV_NBD)

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/