From: Ian Campbell Subject: Re: [PATCH 2/5] xen: Add privcmd device driver Date: Mon, 28 Nov 2011 16:26:53 +0000 Message-ID: <1322497613.20646.19.camel@zakaz.uk.xensource.com> References: <1322431628-21760-1-git-send-email-waldi@debian.org> <1322431628-21760-3-git-send-email-waldi@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1322431628-21760-3-git-send-email-waldi@debian.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bastian Blank Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Sun, 2011-11-27 at 22:07 +0000, Bastian Blank wrote: > @@ -84,7 +85,7 @@ static int xenfs_fill_super(struct super_block *sb, > void *data, int silent) > [1] = {}, > { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR }, > { "capabilities", &capabilities_file_ops, S_IRUGO }, > - { "privcmd", &privcmd_file_ops, S_IRUSR|S_IWUSR }, > + { "privcmd", &xen_privcmd_fops, S_IRUSR|S_IWUSR }, > {""}, > }; > int rc; I wonder if we could do something dumb like make /proc/xen/privcmd by a symlink to /dev/xen/privcmd instead of introducing this cross module dependency? The main reason would be to avoid the select since selecting on user visible symbols is a recipe for confusion and is generally advised against. Perhaps the xen-privcmd.ko should simply call a newly introduced xenfs_register()? This would be a nop if CONFIG_XENFS=n and therefore the select would not be necessary. If COFIG_XENFS=[my] then modprobe will do the right thing. Ian.