Changeset df721df in mainline for kernel/generic/src/synch/syswaitq.c


Ignore:
Timestamp:
2025-01-16T17:34:05Z (29 hours ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
455241b
Parents:
fa3ed5b
Message:

Remove sys_waitq_task_cleanup()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/syswaitq.c

    rfa3ed5b rdf721df  
    5858};
    5959
    60 static bool waitq_cap_cleanup_cb(cap_t *cap, void *arg)
    61 {
    62         kobject_t *kobj = cap_unpublish(cap->task, cap->handle,
    63             KOBJECT_TYPE_WAITQ);
    64         kobject_put(kobj);
    65         cap_free(cap->task, cap->handle);
    66         return true;
    67 }
    68 
    6960/** Initialize the user waitq subsystem */
    7061void sys_waitq_init(void)
     
    7263        waitq_cache = slab_cache_create("waitq_t", sizeof(waitq_t), 0, NULL,
    7364            NULL, 0);
    74 }
    75 
    76 /** Clean-up all waitq capabilities held by the exiting task */
    77 void sys_waitq_task_cleanup(void)
    78 {
    79         caps_apply_to_kobject_type(TASK, KOBJECT_TYPE_WAITQ,
    80             waitq_cap_cleanup_cb, NULL);
    8165}
    8266
Note: See TracChangeset for help on using the changeset viewer.