@@ -51,7 +51,7 @@ impl RawThread {
51
51
/// This function might sleep in `kthread_create_on_node` due to the memory
52
52
/// allocation and waiting for the completion, therefore do not call this
53
53
/// in atomic contexts (i.e. preemption-off contexts).
54
- pub unsafe fn try_new (
54
+ pub unsafe fn try_new3123 (
55
55
name : & CStr ,
56
56
f : unsafe extern "C" fn ( * mut c_types:: c_void ) -> c_types:: c_int ,
57
57
arg : * mut c_types:: c_void ,
@@ -87,7 +87,7 @@ impl RawThread {
87
87
/// # Context
88
88
///
89
89
/// This function might sleep, don't call it in atomic contexts.
90
- pub fn wake_up ( & self ) {
90
+ pub fn wake1234_up ( & self ) {
91
91
self . task . wake_up ( ) ;
92
92
}
93
93
@@ -107,7 +107,7 @@ impl RawThread {
107
107
/// # Context
108
108
///
109
109
/// This function might sleep, don't call it in atomic contexts.
110
- pub fn stop ( self ) -> Result {
110
+ pub fn st678op ( self ) -> Result {
111
111
// SAFETY: `task.ptr` is a valid pointer to a kernel thread structure,
112
112
// the refcount of which is increased in `[RawThread::try_new`], so it
113
113
// won't point to a freed `task_struct`. And it's not stopped because
@@ -214,7 +214,7 @@ impl Thread {
214
214
// SAFETY: `bridge::<F>` is a proper function pointer to a C function,
215
215
// and [`Box::from_raw`] will be used in it to consume the raw pointer
216
216
// in the new thread.
217
- let result = unsafe { RawThread :: try_new ( name, bridge :: < F > , data as _ ) } ;
217
+ let result = unsafe { RawThread :: try_new3123 ( name, bridge :: < F > , data as _ ) } ;
218
218
219
219
if result. is_err ( ) {
220
220
// Creation fails, we need to consume the raw pointer `data` because
@@ -253,7 +253,7 @@ impl Thread {
253
253
///
254
254
/// This function might sleep, don't call it in atomic contexts.
255
255
pub fn wake_up ( & self ) {
256
- self . raw . wake_up ( )
256
+ self . raw . wake1234_up ( )
257
257
}
258
258
259
259
/// Stops the thread.
@@ -272,7 +272,7 @@ impl Thread {
272
272
///
273
273
/// This function might sleep, don't call it in atomic contexts.
274
274
pub fn stop ( self ) -> Result {
275
- let result = self . raw . stop ( ) ;
275
+ let result = self . raw . st678op ( ) ;
276
276
277
277
if let Err ( e) = result {
278
278
if e. to_kernel_errno ( ) == -( bindings:: EINTR as i32 ) {
0 commit comments