From: Thomas Huth <thuth@redhat.com>
To: Pratik Parvati <pratikp@vayavyalabs.com>, qemu-devel@nongnu.org
Subject: Re: instance_init() and the realize() functions
Date: Sat, 18 Jul 2020 16:21:57 +0200 [thread overview]
Message-ID: <cebfe1ec-40d9-ee2e-fd69-f20beec69ce7@redhat.com> (raw)
In-Reply-To: <CA+aXn+E2r1ZFyd1AZnwyvnxB1VsStkJC8vqkhmqZ4JDE_0LwMg@mail.gmail.com>
On 18/07/2020 09.09, Pratik Parvati wrote:
> Hi team,
>
> Could someone please guild me to understand the difference
> between *instance_init()* and the*realize()* functions? The
> *class_init() *function is straight forward (it is similar to the
> constructor in C++ OOP); But I am, finding hard to quote the difference
> between *instance_init()* and *realize()*.
>
> What is the code flow when both functions are defined?
Beside the other good answers that you've already got, maybe this helps
a little bit, too:
http://people.redhat.com/~thuth/blog/qemu/2018/09/10/instance-init-realize.html
Cheers,
Thomas
prev parent reply other threads:[~2020-07-18 14:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-18 7:09 instance_init() and the realize() functions Pratik Parvati
2020-07-18 8:26 ` Liviu Ionescu
2020-07-18 9:43 ` Peter Maydell
2020-07-18 10:09 ` Liviu Ionescu
2020-07-18 14:21 ` Thomas Huth [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cebfe1ec-40d9-ee2e-fd69-f20beec69ce7@redhat.com \
--to=thuth@redhat.com \
--cc=pratikp@vayavyalabs.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).