Skip to content

Commit

Permalink
Export shmem_file_setup for DRM-GEM
Browse files Browse the repository at this point in the history
GEM needs to create shmem files to back buffer objects.  Though currently
creation of files for objects could have been driven from userland, the
modesetting work will require allocation of buffer objects before userland
is running, for boot-time message display.

Signed-off-by: Eric Anholt <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
keith-packard authored and airlied committed Oct 17, 2008
1 parent 0a3e67a commit 395e0dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2580,6 +2580,7 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
shmem_unacct_size(flags, size);
return ERR_PTR(error);
}
EXPORT_SYMBOL_GPL(shmem_file_setup);

/**
* shmem_zero_setup - setup a shared anonymous mapping
Expand Down

0 comments on commit 395e0dd

Please sign in to comment.