Re: Using page cache without a file system

Daniel Phillips (phillips@bonn-fries.net)
Fri, 22 Jun 2001 14:49:42 +0200


On Friday 22 June 2001 05:33, Ho Chak Hung wrote:
> Is it possible to allocate and add pages to the page cache without a
> underlying file system in Linux 2.4? I know that the host pointer to inode
> structure inside the address_space structure can be NULL, but does this
> mean that we can still make use of page cache operations like readpage or
> writepage if we do not back up the cache with a file system? I am currently
> developing a driver that wants to make use of the page cache, however, I
> want to save myself with the heavy load of kmalloc.
>
> Any hint would be greatly appreciated.

Check out ramfs

--
Daniel
-
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/