-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capability/kobject modifications for comments #239
base: master
Are you sure you want to change the base?
Conversation
This just means fewer allocations and indirections.
{ | ||
irq_t *irq = (irq_t *) arg; | ||
irq_kobject_t *kobj = (irq_kobject_t *) arg; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the sake of consistency, irq_from_kobject(arg)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think also in other places...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, probably. I omitted it here because it's all in the same file, but it makes sense to make it consistent.
@@ -891,6 +883,8 @@ void ipc_init(void) | |||
NULL, 0); | |||
answerbox_cache = slab_cache_create("answerbox_t", sizeof(answerbox_t), | |||
0, NULL, NULL, 0); | |||
irq_cache = slab_cache_create("irq_t", sizeof(irq_kobject_t), | |||
0, NULL, NULL, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, so irq_cache is now a cache of irq_kobject_t objects. Wasn't it the case that before there were also pure irq_t objects not visible by userspace and therefore not referencable by a capability?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, they still exist. They just never used this slab for allocations. I think they are all just static.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I admit it's mildly confusing, I should probably rename the slab.
No description provided.