Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4036888imm; Mon, 30 Jul 2018 07:39:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdnxA9xohl9jCtkb7d0YcC+Wu01uUiz8meJU/EpYc6+Xie0IzoBy+yau4Pxe0mAyDQVlX+7 X-Received: by 2002:a17:902:b40c:: with SMTP id x12-v6mr16944661plr.163.1532961571445; Mon, 30 Jul 2018 07:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532961571; cv=none; d=google.com; s=arc-20160816; b=rvSLoyos6pQzfBXI0/v+HQlWdCiZVIO8Ty6eQjV+WF0wXd2LWv2d4C9XcLizB/RLEu YVV+YsbvXmJDR5/tMNoiOEtVGzpyFzv9fbH5ckxY2u743X9qQcv+XOe0JQlUK90MyYrW EaPBOXLkbAbem2Dthr85+FBfqvAfttJUAXo6ynCP7fXzuE+gxfQQ6XomT16+eghhLvUR vAYaBfkm2/bsGwVpoBNY0Z2SvBrbCswV/FpCTyfFus0i4f0Iuhkjeol5Wnq3pTBFEW0U Bxb7F5Av8WfqhVuIjRw5QxVQGt2RCFjR9IQ2zWajPjqQGnZtTqgkX4Z9zBRtmce/RtN2 3NTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1jqj50YtXDVfyXKeRyILu+4ShyBt2jy5XKqCQQ1xoDs=; b=DVFo9ioms72gRnNIlb56WdCQPkNi2OcXFmS34yYg0nRuo8++O0tF6lpnbFQRwcva4w vgP4sguHhZ0rW+08qvAMtGgVMRjbp+2bA1G98XdZ0kPADki92os75yj4WGt57Eoqxv5H dzEih+94tCZA4SUIMqxxqk3UWrsnB3ABFSZZ3NRiwzes8UXN0QIOB2TsESOVLLUl6hIJ KjXAttc/tGS9NwMm5SQvNV8A3MO8dLd0bEqxM30JRIFShwbqEBxiAi1PGGmOe9egsqL2 ASstBgLa83kWKX+IjpQSWkaceWfN3jCfV8i22xF48O8yAWEh2rIQdKAwOzMUvg3K4OYf r57g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18-v6si9691636pgv.248.2018.07.30.07.39.16; Mon, 30 Jul 2018 07:39:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731801AbeG3QNJ (ORCPT + 99 others); Mon, 30 Jul 2018 12:13:09 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34270 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbeG3QNJ (ORCPT ); Mon, 30 Jul 2018 12:13:09 -0400 Received: by mail-wm0-f66.google.com with SMTP id l2-v6so8564032wme.1; Mon, 30 Jul 2018 07:37:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1jqj50YtXDVfyXKeRyILu+4ShyBt2jy5XKqCQQ1xoDs=; b=qqMq0Nz5kdCqDC5TSA5yDUyyXk52yRDGsyEzpFpP72rC2AB1OeF5o3HoRfnUKSm9kw C3nCiZnkZW7gNkjDTiT5PC/5+5xjI3UaJRI7Z+9+qU2SaZMSUU7j8GAUQNxMB+6cLnsp g0J8KfM1XmykLTxsqwhIOYZIaZ2xvqu+9D473KdMB+jeP0HchVxwd5VlgjIl1RZOCWqw P1ZQo9B7qHEpSnmtechb4cYQD+10ACnW06Zh/VjQvZiiwI0FfY/LcPrc3i3v8HDBF07w 9rapcbw6Srfg5Kj/p/3kn6bHziJxGtQkEAmXLvkjGxnfw/lzBe9ew7CfjZnMhCHn7GFE 3V5g== X-Gm-Message-State: AOUpUlHH0/mdq/Kmy4cPypR3YYr7rS6qr2KayQJbxwkQ1tcMbuhDB9IY HvqvXY7HmrDLMimkNTL2K/U= X-Received: by 2002:a1c:e3d5:: with SMTP id a204-v6mr15343607wmh.20.1532961470553; Mon, 30 Jul 2018 07:37:50 -0700 (PDT) Received: from localhost.localdomain (u-084-c050.eap.uni-tuebingen.de. [134.2.84.50]) by smtp.gmail.com with ESMTPSA id 71-v6sm16599753wmq.17.2018.07.30.07.37.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 07:37:49 -0700 (PDT) From: Christian Brauner To: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arve@android.com, tkjos@android.com, maco@android.com, rlove@google.com, ben@decadent.org.uk, Christian Brauner Subject: [RFC PATCH 0/4] file: export functions for binder module Date: Mon, 30 Jul 2018 16:37:06 +0200 Message-Id: <20180730143710.14413-1-christian@brauner.io> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, We currently plan on turning the Android binder and ashmem driver into a module. We have seen more and more requests by users to be able to use the binder and ashmem features without wanting to convince each distro to enable it by default in their kernel. Debian already started to carry patches for turning them into modules. The main problem is that binder currently uses multiple functions that are not exported and are pretty low-level. The most obvious ones that fall into this category are __alloc_fd(), __fd_install(), get_files_struct(), and put_files_struct(). Being an IPC mechanism binder seems like a reasonable user of these functions. I don't expect this patch to be mergeable but rather to kick-off a discussion if we can either simply export them as they are or how we can get supportable exports that allow access to struct files_struct. Thanks! Christian Christian Brauner (4): file: export __alloc_fd() file: export __fd_install() file: export get_files_struct() file: export put_files_struct() fs/file.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1