public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* opaque field?
@ 2006-11-08 10:30 Jun Koi
       [not found] ` <fdaac4d50611080230j2541adc2tbc5267d2b17bda2a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jun Koi @ 2006-11-08 10:30 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

hi,

in the structure kvm_context in libkvm:

struct kvm_context {
    int fd;
    struct kvm_callbacks *callbacks;
    void *opaque;
    void *physical_memory;
};

i would propose to change the field name to "private" or "data",
rather than "opaque", which is a little bit weird to me.

Jun

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: opaque field?
       [not found] ` <fdaac4d50611080230j2541adc2tbc5267d2b17bda2a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2006-11-10  2:28   ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2006-11-10  2:28 UTC (permalink / raw)
  To: Jun Koi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Jun Koi wrote:
> hi,
> 
> in the structure kvm_context in libkvm:
> 
> struct kvm_context {
>     int fd;
>     struct kvm_callbacks *callbacks;
>     void *opaque;
>     void *physical_memory;
> };
> 
> i would propose to change the field name to "private" or "data",
> rather than "opaque", which is a little bit weird to me.

opaque is a pretty common name for this sort of thing.  private is a 
reserved keyword in C++ and data is about as generic as it gets.

Regards,

Anthony Liguori

> Jun
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-10  2:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 10:30 opaque field? Jun Koi
     [not found] ` <fdaac4d50611080230j2541adc2tbc5267d2b17bda2a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2006-11-10  2:28   ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox