Subject: Re: swap device, pageout on pmax broken?
To: None <,>
From: Paul Kranenburg <>
List: tech-kern
Date: 08/02/1995 15:19:14
> so makedev(1, 0) isn't _entirely_ wrong.
> Is swapdev meant to be the *block* device or the *raw* device?

`swapdev = makedev(X,0)' should match the `bdev_swap_init()' position in
bdevsw[], otherwise you end up calling someone else's strategy routine
to do your swapping/paging operations.

> Do they have to be the same major number for the swap device?

No. Also, there's no point in having a node in /dev for the block device
as the interface is internal to the kernel. /dev/drum on the other hand is
used by libkvm to provide a user interface for e.g. ps(1), and, given a
choice, it's probably best to allocate the major the same as your cousin
OS (if only to avoid having to allocate it somewhere else where major number
compatibility might possibly be of greater importance).