From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Ongaro Subject: Re: [RFC] grant table map (gntdev) for minios Date: Wed, 23 Jul 2008 19:11:29 +0100 Message-ID: <48877451.1050606@citrix.com> References: <48876B00.9050903@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48876B00.9050903@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Diego Ongaro wrote: > I've implemented a grant map for mini-os to support the xc_gnttab_*() > functions, the equivalent of gntdev in linux. Adds a close() case for the new file type. Signed-off-by: Diego Ongaro --- diff --git a/extras/mini-os/lib/sys.c b/extras/mini-os/lib/sys.c --- a/extras/mini-os/lib/sys.c +++ b/extras/mini-os/lib/sys.c @@ -401,6 +401,9 @@ int close(int fd) case FTYPE_EVTCHN: xc_evtchn_close(fd); return 0; + case FTYPE_GNTMAP: + xc_gnttab_close(fd); + return 0; case FTYPE_TAP: shutdown_netfront(files[fd].tap.dev); files[fd].type = FTYPE_NONE;