qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 09/13] Add exit callback to DeviceInfo.


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 09/13] Add exit callback to DeviceInfo.
Date: Fri, 25 Sep 2009 09:33:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

      qdev_initfn init;
+    qdev_exitfn exit;
      BusInfo *bus_info;
      struct DeviceInfo *next;
  };

I don't like the name "exit".  The buddy of init() is often called
fini().

Picked that name convention up from the linux kernel which has module_init() and module_exit() ...

I can change it, but I'd like to have some kind of agreement on the list so I don't have to go through all the patches changing this twice. Naming variants I can thing of are:

  * exit
  * fini
  * free
  * uninit
  * cleanup
  * release

Comments?

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]