Skip to content

Commit 7d5f81d

Browse files
committed
Add EADDRNOTAVAIL error to rust
This will be used for network drivers. Signed-off-by: Finn Behrens <[email protected]>
1 parent bc33ea8 commit 7d5f81d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/kernel/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ impl Error {
126126
/// Math result not representable.
127127
pub const ERANGE: Self = Error(-(bindings::ERANGE as i32));
128128

129+
/// Cannot assign requested address
130+
pub const EADDRNOTAVAIL: Self = Error(-(bindings::EADDRNOTAVAIL as i32));
131+
129132
/// Restart the system call.
130133
pub const ERESTARTSYS: Self = Error(-(bindings::ERESTARTSYS as i32));
131134

0 commit comments

Comments
 (0)