openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus-broker/19-r0/dbus-broker-19/subprojects/c-list/src/c-list.h
static inline void c_list_link_before(CList* where, CList* what)
{
    CList *prev = where->prev, *next = where;

    next->prev = what;
    what->next = next;
    what->prev = prev;
    prev->next = what;
}
/**
 * c_list_link_before() - link entry into list
 * @where:              linked list entry used as anchor
 * @what:               entry to link
 *
 * This links @what directly in front of @where. @where can either be a list
 * head or any entry in the list.
 *
 * If @where points to the list head, this effectively links @what as new tail
 * element. Hence, the macro c_list_link_tail() is an alias to this.
 *
 * @what is not inspected prior to being linked. Hence, it better not be linked
 * into another list, or the other list will be corrupted.
 */
link entry into list
@where:              linked list entry used as anchor
@what:               entry to link

This links @what directly in front of @where. @where can either be a list
head or any entry in the list.

If @where points to the list head, this effectively links @what as new tail
element. Hence, the macro c_list_link_tail() is an alias to this.

@what is not inspected prior to being linked. Hence, it better not be linked
into another list, or the other list will be corrupted.
link entry into list @where : linked list entry used as anchor @what : entry to link This links @what directly in front of @where . @where can either be a list head or any entry in the list . If @where points to the list head this effectively links @what as new tail element . Hence the macro c_list_link_tail () is an alias to this . @what is not inspected prior to being linked . Hence it better not be linked into another list or the other list will be corrupted .
static inline void c_list_link_before(CList* where, CList* what)
{
    CList *prev = where->prev, *next = where;
    next->prev = what;
    what->next = next;
    what->prev = prev;
    prev->next = what;
}
static inline void c_list_link_before ( CList * where , CList * what ) { CList * prev = where -> prev , * next = where ; next -> prev = what ; what -> next = next ; what -> prev = prev ; prev -> next = what ; }
c_list_link_before() - link entry into list
 @where:              linked list entry used as anchor
 @what:               entry to link
c_list_link_before () - link entry into list @where : linked list entry used as anchor @what : entry to link