diff options
| author | Al Viro <[email protected]> | 2012-08-16 01:06:33 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2012-09-27 01:08:55 +0000 |
| commit | f869e8a7f753e3fd43d6483e796774776f645edb (patch) | |
| tree | 3b215f30a040812eb7488bd4596a5c3ae0b50e51 /fs/file_table.c | |
| parent | move put_unused_fd() and fd_install() to fs/file.c (diff) | |
| download | kernel-f869e8a7f753e3fd43d6483e796774776f645edb.tar.gz kernel-f869e8a7f753e3fd43d6483e796774776f645edb.zip | |
expose a low-level variant of fd_install() for binder
Similar situation to that of __alloc_fd(); do not use unless you
really have to. You should not touch any descriptor table other
than your own; it's a sure sign of a really bad API design.
As with __alloc_fd(), you *must* use a first-class reference to
struct files_struct; something obtained by get_files_struct(some task)
(let alone direct task->files) will not do. It must be either
current->files, or obtained by get_files_struct(current) by the
owner of that sucker and given to you.
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions
