2 #include <linux/kernel.h> 24 u64 nr = DIV_ROUND_UP(p->
curr - last, p->
step);
27 ui_progress__ops->
update(p);
32 const char *title,
bool size)
40 if (ui_progress__ops->
init)
41 ui_progress__ops->
init(p);
46 if (ui_progress__ops->
finish)
47 ui_progress__ops->
finish();
void ui_progress__update(struct ui_progress *p, u64 adv)
static void null_progress__update(struct ui_progress *p __maybe_unused)
struct ui_progress_ops * ui_progress__ops
void __ui_progress__init(struct ui_progress *p, u64 total, const char *title, bool size)
static struct ui_progress_ops null_progress__ops
void ui_progress__finish(void)
void(* update)(struct ui_progress *p)
void(* init)(struct ui_progress *p)