lkml.org 
[lkml]   [2022]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFCv2 03/10] x86: Introduce userspace API to handle per-thread features
On Fri, May 13, 2022 at 05:34:12PM +0000, Edgecombe, Rick P wrote:
> On Fri, 2022-05-13 at 16:09 +0200, Alexander Potapenko wrote:
> > > +
> > > + /* Handle ARCH_THREAD_FEATURE_ENABLE */
> > > +
> > > + task->thread.features |= features;
> > > +out:
> > > + return task->thread.features;
> >
> > Isn't arch_prctl() supposed to return 0 on success?
>
> Hmm, good point. Maybe we'll need a struct to pass info in and out.

But values >0 are unused. I don't see why can't we use them.

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2022-05-14 01:13    [W:0.181 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site