MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / write

Function write

src/ioctl/mod.rs:251–253  ·  view source on GitHub ↗
(group: u8, number: u8)

Source from the content-addressed store, hash-verified

249 #[doc(alias = "_IOW")]
250 #[inline]
251 pub const fn write<T>(group: u8, number: u8) -> Opcode {
252 from_components(Direction::Write, group, number, mem::size_of::<T>())
253 }
254
255 /// Create a new reading and writing opcode from a group, a number and the
256 /// type of data.

Callers 15

test_teeFunction · 0.50
test_basic_pipesFunction · 0.50
test_basic_pipes_withFunction · 0.50
test_splice_pipe2pipeFunction · 0.50
test_vmsplice_readFunction · 0.50
test_readwriteFunction · 0.50
test_readwrite_uninitFunction · 0.50
serverFunction · 0.50
clientFunction · 0.50
test_unix_msg_with_comboFunction · 0.50
serverFunction · 0.50

Calls 1

from_componentsFunction · 0.85

Tested by 14

test_teeFunction · 0.40
test_basic_pipesFunction · 0.40
test_basic_pipes_withFunction · 0.40
test_splice_pipe2pipeFunction · 0.40
test_vmsplice_readFunction · 0.40
test_readwriteFunction · 0.40
test_readwrite_uninitFunction · 0.40
test_unix_msg_with_comboFunction · 0.40
test_unix_msg_with_comboFunction · 0.40
test_mmapFunction · 0.40