Searched refs:optlen (Results 1 – 1 of 1) sorted by relevance
/DragonOS-0.1.7/kernel/src/net/ |
D | syscall.rs | 82 let optlen = regs.r12 as usize; in sys_setsockopt() localVariable 83 return do_setsockopt(fd, level, optname, optval as *const u8, optlen) in sys_setsockopt() 100 optlen: usize, in do_setsockopt() 103 if unsafe { verify_area(optval as u64, optlen as u64) } == false { in do_setsockopt() 111 let data: &[u8] = unsafe { core::slice::from_raw_parts(optval, optlen) }; in do_setsockopt() 123 let optlen = regs.r12 as usize; in sys_getsockopt() localVariable 124 return do_getsockopt(fd, level, optname, optval as *mut u8, optlen as *mut u32) in sys_getsockopt() 143 optlen: *mut u32, in do_getsockopt() 152 if unsafe { verify_area(optlen as u64, core::mem::size_of::<u32>() as u64) } == false { in do_getsockopt() 172 *optlen = core::mem::size_of::<u32>() as u32; in do_getsockopt() [all …]
|