@@ -1217,6 +1217,13 @@ s_no_extra_traits! {
1217
1217
pub policy: :: policy_t,
1218
1218
pub suspend_count: integer_t,
1219
1219
}
1220
+
1221
+ #[ cfg_attr( libc_packedN, repr( packed( 4 ) ) ) ]
1222
+ pub struct log2phys {
1223
+ pub l2p_flags: :: c_uint,
1224
+ pub l2p_contigbytes: :: off_t,
1225
+ pub l2p_devoffset: :: off_t,
1226
+ }
1220
1227
}
1221
1228
1222
1229
impl siginfo_t {
@@ -2467,6 +2474,37 @@ cfg_if! {
2467
2474
suspend_count. hash( state) ;
2468
2475
}
2469
2476
}
2477
+
2478
+ impl PartialEq for log2phys {
2479
+ fn eq( & self , other: & log2phys) -> bool {
2480
+ self . l2p_flags == other. l2p_flags
2481
+ && self . l2p_contigbytes == other. l2p_contigbytes
2482
+ && self . l2p_devoffset == other. l2p_devoffset
2483
+ }
2484
+ }
2485
+ impl Eq for log2phys { }
2486
+ impl :: fmt:: Debug for log2phys {
2487
+ fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
2488
+ let l2p_flags = self . l2p_flags;
2489
+ let l2p_contigbytes = self . l2p_contigbytes;
2490
+ let l2p_devoffset = self . l2p_devoffset;
2491
+ f. debug_struct( "log2phys" )
2492
+ . field( "l2p_flags" , & l2p_flags)
2493
+ . field( "l2p_contigbytes" , & l2p_contigbytes)
2494
+ . field( "l2p_devoffset" , & l2p_devoffset)
2495
+ . finish( )
2496
+ }
2497
+ }
2498
+ impl :: hash:: Hash for log2phys {
2499
+ fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
2500
+ let l2p_flags = self . l2p_flags;
2501
+ let l2p_contigbytes = self . l2p_contigbytes;
2502
+ let l2p_devoffset = self . l2p_devoffset;
2503
+ l2p_flags. hash( state) ;
2504
+ l2p_contigbytes. hash( state) ;
2505
+ l2p_devoffset. hash( state) ;
2506
+ }
2507
+ }
2470
2508
}
2471
2509
}
2472
2510
@@ -2943,12 +2981,16 @@ pub const F_PREALLOCATE: ::c_int = 42;
2943
2981
pub const F_RDADVISE : :: c_int = 44 ;
2944
2982
pub const F_RDAHEAD : :: c_int = 45 ;
2945
2983
pub const F_NOCACHE : :: c_int = 48 ;
2984
+ pub const F_LOG2PHYS : :: c_int = 49 ;
2946
2985
pub const F_GETPATH : :: c_int = 50 ;
2947
2986
pub const F_FULLFSYNC : :: c_int = 51 ;
2948
2987
pub const F_FREEZE_FS : :: c_int = 53 ;
2949
2988
pub const F_THAW_FS : :: c_int = 54 ;
2950
2989
pub const F_GLOBAL_NOCACHE : :: c_int = 55 ;
2951
2990
pub const F_NODIRECT : :: c_int = 62 ;
2991
+ pub const F_LOG2PHYS_EXT : :: c_int = 65 ;
2992
+ pub const F_BARRIERFSYNC : :: c_int = 85 ;
2993
+ pub const F_GETPATH_NOFIRMLINK : :: c_int = 102 ;
2952
2994
2953
2995
pub const F_ALLOCATECONTIG : :: c_uint = 0x02 ;
2954
2996
pub const F_ALLOCATEALL : :: c_uint = 0x04 ;
0 commit comments