Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261311AbVCKTVv (ORCPT ); Fri, 11 Mar 2005 14:21:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261308AbVCKTVg (ORCPT ); Fri, 11 Mar 2005 14:21:36 -0500 Received: from clock-tower.bc.nu ([81.2.110.250]:17817 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S261529AbVCKTRr (ORCPT ); Fri, 11 Mar 2005 14:17:47 -0500 Subject: Re: User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11) From: Alan Cox To: Albert Cahalan Cc: Linux Kernel Mailing List , peterc@gelato.unsw.edu.au In-Reply-To: <1110518308.1949.67.camel@cube> References: <1110518308.1949.67.camel@cube> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1110568542.15927.76.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 11 Mar 2005 19:15:46 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 629 Lines: 18 > You forgot the PCI domain (a.k.a. hose, phb...) number. > Also, you might encode bus,slot,function according to > the PCI spec. So that gives: > > long usr_pci_open(unsigned pcidomain, unsigned devspec, __u64 dmamask); Still insufficient because the device might be hotplugged on you. You need a file handle that has the expected revocation effects on unplug and refcounts Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/