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


Ignore:
Timestamp:
2019-10-14T15:30:30Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
46a8c3cd
Parents:
f1cd4b0
git-author:
Jakub Jermar <jakub@…> (2019-10-14 15:27:34)
git-committer:
Jakub Jermar <jakub@…> (2019-10-14 15:30:30)
Message:

Move kobject's ops out of kobject

Kobject ops is a property of the kobject type rather than the individual
kernel objects. There is no need to remember the ops in every single
instance.

File:
1 edited

Legend:

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

    rf1cd4b0 rfc0de8c  
    5454}
    5555
    56 static kobject_ops_t waitq_kobject_ops = {
     56kobject_ops_t waitq_kobject_ops = {
    5757        .destroy = waitq_destroy
    5858};
     
    100100                return (sys_errno_t) ENOMEM;
    101101        }
    102         kobject_initialize(kobj, KOBJECT_TYPE_WAITQ, wq, &waitq_kobject_ops);
     102        kobject_initialize(kobj, KOBJECT_TYPE_WAITQ, wq);
    103103
    104104        cap_handle_t handle;
Note: See TracChangeset for help on using the changeset viewer.