| /linux/tools/testing/selftests/liveupdate/ |
| H A D | luo_kexec_simple.c | 24 int session_fd; in run_stage_1() local 33 session_fd = luo_create_session(luo_fd, TEST_SESSION_NAME); in run_stage_1() 34 if (session_fd < 0) in run_stage_1() 37 if (create_and_preserve_memfd(session_fd, TEST_MEMFD_TOKEN, in run_stage_1() 50 int session_fd, mfd, stage; in run_stage_2() local 59 session_fd = luo_retrieve_session(luo_fd, TEST_SESSION_NAME); in run_stage_2() 60 if (session_fd < 0) in run_stage_2() 65 mfd = restore_and_verify_memfd(session_fd, TEST_MEMFD_TOKEN, in run_stage_2() 73 if (luo_session_finish(session_fd) < 0) in run_stage_2() 75 close(session_fd); in run_stage_2()
|
| H A D | liveupdate.c | 107 static int get_session_name(int session_fd, char *name, size_t name_len) 113 if (ioctl(session_fd, LIVEUPDATE_SESSION_GET_NAME, &args)) in TEST_F() 173 static int preserve_fd(int session_fd, int fd_to_preserve, __u64 token) 181 if (ioctl(session_fd, LIVEUPDATE_SESSION_PRESERVE_FD, &args)) in TEST_F() 197 int session_fd, mem_fd; in TEST_F() 204 session_fd = create_session(self->fd1, "preserve-memfd-test"); 205 ASSERT_GE(session_fd, 0); 211 ASSERT_EQ(preserve_fd(session_fd, mem_fd, 0x1234), 0); in TEST_F() 212 ASSERT_EQ(close(session_fd), 0); in TEST_F() 232 int session_fd, mem_fd in TEST_F() 156 preserve_fd(int session_fd,int fd_to_preserve,__u64 token) preserve_fd() argument 180 int session_fd, mem_fd; TEST_F() local 215 int session_fd, mem_fd1, mem_fd2; TEST_F() local 327 int session_fd, unsupported_fd; TEST_F() local [all...] |
| H A D | luo_test_utils.c | 81 int create_and_preserve_memfd(int session_fd, int token, const char *data) in create_and_preserve_memfd() 104 if (ioctl(session_fd, LIVEUPDATE_SESSION_PRESERVE_FD, &arg) < 0) in restore_and_verify_memfd() 116 int restore_and_verify_memfd(int session_fd, int token, in restore_and_verify_memfd() 125 if (ioctl(session_fd, LIVEUPDATE_SESSION_RETRIEVE_FD, &arg) < 0) in restore_and_verify_memfd() 151 int luo_session_finish(int session_fd) in create_state_file() 155 if (ioctl(session_fd, LIVEUPDATE_SESSION_FINISH, &arg) < 0) 57 create_and_preserve_memfd(int session_fd,int token,const char * data) create_and_preserve_memfd() argument 92 restore_and_verify_memfd(int session_fd,int token,const char * expected_data) restore_and_verify_memfd() argument 127 luo_session_finish(int session_fd) luo_session_finish() argument
|
| H A D | luo_test_utils.h | 27 int luo_session_finish(int session_fd); 31 int create_and_preserve_memfd(int session_fd, int token, const char *data); 32 int restore_and_verify_memfd(int session_fd, int token, const char *expected_data);
|
| /linux/Documentation/networking/ |
| H A D | l2tp.rst | 395 int session_fd; 398 session_fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OL2TP); 399 if (session_fd < 0) 413 /* session_fd is the fd of the session's PPPoL2TP socket. 416 ret = connect(session_fd, (struct sockaddr *)&sax, sizeof(sax)); 418 close(session_fd); 422 return session_fd; 428 /* Input: the session PPPoX data socket `session_fd` which was created 436 ret = ioctl(session_fd, PPPIOCGCHAN, &chindx);
|