Home
last modified time | relevance | path

Searched refs:luo_fd (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/liveupdate/
H A Dluo_multi_session.c31 static void run_stage_1(int luo_fd) in run_stage_1() argument
38 create_state_file(luo_fd, STATE_SESSION_NAME, STATE_MEMFD_TOKEN, 2); in run_stage_1()
42 s_empty1_fd = luo_create_session(luo_fd, SESSION_EMPTY_1); in run_stage_1()
46 s_empty2_fd = luo_create_session(luo_fd, SESSION_EMPTY_2); in run_stage_1()
53 s_files1_fd = luo_create_session(luo_fd, SESSION_FILES_1); in run_stage_1()
64 s_files2_fd = luo_create_session(luo_fd, SESSION_FILES_2); in run_stage_1()
76 close(luo_fd); in run_stage_1()
81 static void run_stage_2(int luo_fd, int state_session_fd) in run_stage_2() argument
95 s_empty1_fd = luo_retrieve_session(luo_fd, SESSION_EMPTY_1); in run_stage_2()
99 s_empty2_fd = luo_retrieve_session(luo_fd, SESSION_EMPTY_2); in run_stage_2()
[all …]
H A Dluo_kexec_simple.c22 static void run_stage_1(int luo_fd) in run_stage_1() argument
29 create_state_file(luo_fd, STATE_SESSION_NAME, STATE_MEMFD_TOKEN, 2); in run_stage_1()
33 session_fd = luo_create_session(luo_fd, TEST_SESSION_NAME); in run_stage_1()
43 close(luo_fd); in run_stage_1()
48 static void run_stage_2(int luo_fd, int state_session_fd) in run_stage_2() argument
59 session_fd = luo_retrieve_session(luo_fd, TEST_SESSION_NAME); in run_stage_2()
H A Dluo_test_utils.c55 int luo_create_session(int luo_fd, const char *name) in luo_retrieve_session()
62 if (ioctl(luo_fd, LIVEUPDATE_IOCTL_CREATE_SESSION, &arg) < 0) in create_and_preserve_memfd()
68 int luo_retrieve_session(int luo_fd, const char *name) in create_and_preserve_memfd()
75 if (ioctl(luo_fd, LIVEUPDATE_IOCTL_RETRIEVE_SESSION, &arg) < 0) in create_and_preserve_memfd()
161 void create_state_file(int luo_fd, const char *session_name, int token, in restore_and_read_stage()
167 state_session_fd = luo_create_session(luo_fd, session_name); in restore_and_read_stage()
260 int luo_fd = luo_open_device(); in luo_test()
264 if (luo_fd < 0) { in luo_test()
269 state_session_fd = luo_retrieve_session(luo_fd, state_session_name);
285 stage1(luo_fd);
31 luo_create_session(int luo_fd,const char * name) luo_create_session() argument
44 luo_retrieve_session(int luo_fd,const char * name) luo_retrieve_session() argument
137 create_state_file(int luo_fd,const char * session_name,int token,int next_stage) create_state_file() argument
236 int luo_fd = luo_open_device(); luo_test() local
[all...]
H A Dluo_test_utils.h25 int luo_create_session(int luo_fd, const char *name);
26 int luo_retrieve_session(int luo_fd, const char *name);
34 void create_state_file(int luo_fd, const char *session_name, int token,
40 typedef void (*luo_test_stage1_fn)(int luo_fd);
41 typedef void (*luo_test_stage2_fn)(int luo_fd, int state_session_fd);