Lines Matching refs:head

45 static void mount_point_free(MountPoint **head, MountPoint *m) {  in mount_point_free()  argument
46 assert(head); in mount_point_free()
49 LIST_REMOVE(mount_point, *head, m); in mount_point_free()
56 void mount_points_list_free(MountPoint **head) { in mount_points_list_free() argument
57 assert(head); in mount_points_list_free()
59 while (*head) in mount_points_list_free()
60 mount_point_free(head, *head); in mount_points_list_free()
63 int mount_points_list_get(const char *mountinfo, MountPoint **head) { in mount_points_list_get() argument
68 assert(head); in mount_points_list_get()
171 LIST_PREPEND(mount_point, *head, TAKE_PTR(m)); in mount_points_list_get()
177 int swap_list_get(const char *swaps, MountPoint **head) { in swap_list_get() argument
182 assert(head); in swap_list_get()
218 LIST_PREPEND(mount_point, *head, TAKE_PTR(swap)); in swap_list_get()
224 static int loopback_list_get(MountPoint **head) { in loopback_list_get() argument
229 assert(head); in loopback_list_get()
274 LIST_PREPEND(mount_point, *head, lb); in loopback_list_get()
280 static int dm_list_get(MountPoint **head) { in dm_list_get() argument
285 assert(head); in dm_list_get()
326 LIST_PREPEND(mount_point, *head, m); in dm_list_get()
332 static int md_list_get(MountPoint **head) { in md_list_get() argument
337 assert(head); in md_list_get()
394 LIST_PREPEND(mount_point, *head, m); in md_list_get()
607 static int mount_points_list_umount(MountPoint **head, bool *changed, int umount_log_level) { in mount_points_list_umount() argument
610 assert(head); in mount_points_list_umount()
613 LIST_FOREACH(mount_point, m, *head) { in mount_points_list_umount()
652 static int swap_points_list_off(MountPoint **head, bool *changed) { in swap_points_list_off() argument
655 assert(head); in swap_points_list_off()
658 LIST_FOREACH(mount_point, m, *head) { in swap_points_list_off()
667 mount_point_free(head, m); in swap_points_list_off()
673 static int loopback_points_list_detach(MountPoint **head, bool *changed, int umount_log_level) { in loopback_points_list_detach() argument
677 assert(head); in loopback_points_list_detach()
682 LIST_FOREACH(mount_point, m, *head) { in loopback_points_list_detach()
698 mount_point_free(head, m); in loopback_points_list_detach()
704 static int dm_points_list_detach(MountPoint **head, bool *changed, int umount_log_level) { in dm_points_list_detach() argument
708 assert(head); in dm_points_list_detach()
713 LIST_FOREACH(mount_point, m, *head) { in dm_points_list_detach()
728 mount_point_free(head, m); in dm_points_list_detach()
734 static int md_points_list_detach(MountPoint **head, bool *changed, int umount_log_level) { in md_points_list_detach() argument
738 assert(head); in md_points_list_detach()
743 LIST_FOREACH(mount_point, m, *head) { in md_points_list_detach()
758 mount_point_free(head, m); in md_points_list_detach()