Agreed.
Like 'current' for instance?
static __always_inline struct task_struct *get_current(void)
{
return x86_read_percpu(current_task);
}
#define current get_current()
Yes, I know it's silly.
One thing I was trying to do was make it possible to change how the cred
structure was accessed without having to keep going back and change a whole
load of stuff each time.
It's a 'test' patch, as you'll note from the subject, and not particularly
near completion. I'm interested in garnering useful comments, particularly on
the points of concern that I raised.
I have no intention of asking you to merge it as it stands - I was hoping that
would be clear.
David
-