Searched refs:optval (Results 1 – 1 of 1) sorted by relevance
/DragonOS-0.1.7/kernel/src/net/ |
D | syscall.rs | 81 let optval = regs.r11 as usize; in sys_setsockopt() localVariable 83 return do_setsockopt(fd, level, optname, optval as *const u8, optlen) in sys_setsockopt() 99 optval: *const u8, 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() 122 let optval = regs.r11 as usize; in sys_getsockopt() localVariable 124 return do_getsockopt(fd, level, optname, optval as *mut u8, optlen as *mut u32) in sys_getsockopt() 142 optval: *mut u8, in do_getsockopt() 146 if unsafe { verify_area(optval as u64, core::mem::size_of::<u8>() as u64) } == false { in do_getsockopt() 158 let optval = optval as *mut u32; in do_getsockopt() localVariable [all …]
|