]> git.karo-electronics.de Git - karo-tx-linux.git/commit
new helper: __alloc_fd()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Aug 2012 21:27:30 +0000 (17:27 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 22 Aug 2012 21:30:16 +0000 (17:30 -0400)
commit004223461eee58fd6a6add26c3175b66351f8f23
treee138b1dfcd52be0a62ecfadb5e3c99a377644773
parent56daa6418495bde0e9a80595d1a2c3fa28d3357a
new helper: __alloc_fd()

Essentially, alloc_fd() in a files_struct we own a reference to.
Most of the time wanting to use it is a sign of lousy API
design (such as android/binder).  It's *not* a general-purpose
interface; better that than open-coding its guts, but again,
playing with other process' descriptor table is a sign of bad
design.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/android/binder.c
fs/file.c
include/linux/fdtable.h