queue.h: Add QLIST_FIX_HEAD_PTR()
authorKevin Wolf <kwolf@redhat.com>
Wed, 10 Jun 2015 11:47:35 +0000 (13:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 12 Jun 2015 15:04:59 +0000 (17:04 +0200)
commitae81693004fd95f7013e42811944707a92948d9a
tree937270c2d5dea8ba579c74bf13014d7e7bb79030
parent6ee4ce1ee75a651c246d926c2302281b51981f6d
queue.h: Add QLIST_FIX_HEAD_PTR()

If the head of a list has been moved to a different memory location, the
le_prev link in the first list entry has to be fixed up. Provide a macro
that implements this fixup.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
include/qemu/queue.h