From: Tristan Gingold Subject: do_* declarations (was: Re: [Xen-ia64-devel] [PATCH] added multicall) Date: Thu, 26 Jan 2006 11:10:30 +0100 Message-ID: <200601261110.30189.Tristan.Gingold@bull.net> References: <200601251455.19500.Tristan.Gingold@bull.net> <200601260433.AA02168@m-kanno.jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200601260433.AA02168@m-kanno.jp.fujitsu.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Masaki Kanno , xen-devel Cc: xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, on ia64, the do_* functions for hypercalls are called in C. However, they = are=20 not declared in any .h file. I think it is cleaner to declare them in an=20 header file rather than locally. The question is in which header file. Thank you for any suggestion. The do_* functions are at least: extern long do_ni_hypercall(void); extern long do_dom0_op(dom0_op_t *u_dom0_op); extern long do_memory_op(int cmd, void *arg); extern long do_multicall(multicall_entry_t *call_list, unsigned int nr_call= s); extern long do_event_channel_op(evtchn_op_t *uop); extern long do_xen_version(int cmd, void *arg); extern long do_console_io(int cmd, int count, char *buffer); extern long do_grant_table_op(unsigned int cmd, void *uop, unsigned int=20 count); Thanks, Tristan. Le Jeudi 26 Janvier 2006 05:33, Masaki Kanno a =C3=A9crit : > Hi, Tristan > > Thank you for advice. Please give me advice once again. > I was not able to find an appropriate common header. In which header > do you define them in case of you? > - xen/hypercall.h (new) > - xen/multicall.h > - asm/multicall.h > - etc > > I think xen/hypercall.h is better. Why not. I send this mail to xen-devel, so that we can have official advic= es! > > Best regards, > Kan > > Tristan Gingold wrote: > >Le Mercredi 25 Janvier 2006 13:09, Masaki Kanno a =E9=A6=97rit : > >> Hi, > >> > >> This patch added multicall hypercall. > >> The xm top command succeeded. > >> > >> Signed-off-by: Masaki Kanno > >> > >> Best regards, > >> Kan > > > >Hi, > > > >I personnaly think that these declarations > >+extern long do_ni_hypercall(void); > >+extern long do_dom0_op(dom0_op_t *u_dom0_op); > >+extern long do_memory_op(int cmd, void *arg); > >+extern long do_multicall(multicall_entry_t *call_list, unsigned int > >nr_calls); > >+extern long do_event_channel_op(evtchn_op_t *uop); > >+extern long do_xen_version(int cmd, void *arg); > >+extern long do_console_io(int cmd, int count, char *buffer); > >+extern long do_grant_table_op(unsigned int cmd, void *uop, unsigned int > >count); > > > >should go in common headers. They will be checked with definitions and > > this will avoid to re-declare them in some other files. > > > >Tristan.