From: Al Viro Date: Thu, 16 Aug 2012 01:06:33 +0000 (-0400) Subject: expose a low-level variant of fd_install() for binder X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~36^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f869e8a7f753e3fd43d6483e796774776f645edb;p=pandora-kernel.git 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 --- Reading git-diff-tree failed