Re: [PATCH] Export shmem_file_setup and shmem_getpage for DRM-GEM

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Keith Packard
Date: Tuesday, August 19, 2008 - 9:46 am

On Tue, 2008-08-19 at 20:00 +1000, Nick Piggin wrote:


We need to allocate objects from kernel mode to get the console running.
I'd prefer to let that occur before user mode was available. Also,
emulating the existing fbdev syscall interface will require that we
allocate objects within the kernel.

Hence, the question about how we should create objects from kernel mode.
I think we can do this with a series of VFS function calls. Would that
series of VFS calls be preferable to directly accessing the existing
shmem API?

Another alternative is to improve the existing shmem API to better
capture what we're trying to do here. Both drm and sysv shm just want
anonymous pages that are backed by swap. If we started from scratch,
what API would we like to have here? Would we have it support both shmem
and hugetlbfs?

--=20
keith.packard@intel.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] PCI: Add pci_read_base() API, Eric Anholt, (Thu Jul 31, 11:58 pm)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Christoph Hellwig, (Fri Aug 1, 1:50 pm)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Stephane Marchesin, (Wed Aug 6, 9:20 am)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Arjan van de Ven, (Wed Aug 6, 10:24 am)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Stephane Marchesin, (Wed Aug 6, 10:32 am)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Stephane Marchesin, (Wed Aug 6, 11:09 am)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Stephane Marchesin, (Wed Aug 6, 7:16 pm)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Christoph Hellwig, (Sun Aug 10, 6:23 pm)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Christoph Hellwig, (Sun Aug 10, 6:30 pm)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Christoph Hellwig, (Sun Aug 10, 6:34 pm)
Re: [PATCH] Export shmem_file_setup for DRM-GEM, Keith Packard, (Sun Aug 10, 8:03 pm)
Re: [PATCH] Export shmem_file_setup and shmem_getpage for ..., Keith Packard, (Tue Aug 19, 9:46 am)