Searched refs:luo_fd (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/liveupdate/ |
| H A D | luo_multi_session.c | 31 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 D | luo_test_utils.c | 31 int luo_create_session(int luo_fd, const char *name) in luo_create_session() argument 38 if (ioctl(luo_fd, LIVEUPDATE_IOCTL_CREATE_SESSION, &arg) < 0) in luo_create_session() 44 int luo_retrieve_session(int luo_fd, const char *name) in luo_retrieve_session() argument 51 if (ioctl(luo_fd, LIVEUPDATE_IOCTL_RETRIEVE_SESSION, &arg) < 0) in luo_retrieve_session() 137 void create_state_file(int luo_fd, const char *session_name, int token, in create_state_file() argument 143 state_session_fd = luo_create_session(luo_fd, session_name); in create_state_file() 236 int luo_fd = luo_open_device(); in luo_test() local 240 if (luo_fd < 0) { in luo_test() 245 state_session_fd = luo_retrieve_session(luo_fd, state_session_name); in luo_test() 261 stage1(luo_fd); in luo_test() [all …]
|
| H A D | luo_kexec_simple.c | 22 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 D | luo_test_utils.h | 25 int luo_create_session(int luo_fd, const char *name); 26 int luo_retrieve_session(int luo_fd, const char *name); 32 void create_state_file(int luo_fd, const char *session_name, int token, 38 typedef void (*luo_test_stage1_fn)(int luo_fd); 39 typedef void (*luo_test_stage2_fn)(int luo_fd, int state_session_fd);
|