Searched refs:state_session_fd (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/liveupdate/ |
| H A D | luo_test_utils.c | 141 int state_session_fd; in create_state_file() local 143 state_session_fd = luo_create_session(luo_fd, session_name); in create_state_file() 144 if (state_session_fd < 0) in create_state_file() 148 if (create_and_preserve_memfd(state_session_fd, token, buf) < 0) in create_state_file() 156 void restore_and_read_stage(int state_session_fd, int token, int *stage) in restore_and_read_stage() argument 161 mfd = restore_and_verify_memfd(state_session_fd, token, NULL); in restore_and_read_stage() 237 int state_session_fd; in luo_test() local 245 state_session_fd = luo_retrieve_session(luo_fd, state_session_name); in luo_test() 246 if (state_session_fd == -ENOENT) in luo_test() 248 else if (state_session_fd >= 0) in luo_test() [all …]
|
| H A D | luo_kexec_simple.c | 48 static void run_stage_2(int luo_fd, int state_session_fd) in run_stage_2() argument 54 restore_and_read_stage(state_session_fd, STATE_MEMFD_TOKEN, &stage); in run_stage_2() 78 if (luo_session_finish(state_session_fd) < 0) in run_stage_2() 80 close(state_session_fd); in run_stage_2()
|
| H A D | luo_multi_session.c | 81 static void run_stage_2(int luo_fd, int state_session_fd) in run_stage_2() argument 88 restore_and_read_stage(state_session_fd, STATE_MEMFD_TOKEN, &stage); in run_stage_2() 151 if (luo_session_finish(state_session_fd) < 0) in run_stage_2() 153 close(state_session_fd); in run_stage_2()
|
| H A D | luo_test_utils.h | 34 void restore_and_read_stage(int state_session_fd, int token, int *stage); 39 typedef void (*luo_test_stage2_fn)(int luo_fd, int state_session_fd);
|