RTEMS | Draft: cpukit/age_verify: Add optional state-mandated age verification API (!1137)

Wayne Thornton (@wmthornton-dev) gitlab at rtems.org
Mon Mar 16 18:36:36 UTC 2026




Wayne Thornton commented on a discussion on cpukit/include/rtems/age_verify.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145747

 > +#endif
 > +
 > +// These age brackets are arbitrary and can be changed as needed to comply with the law of different regions.
 > +// Ultimately, I think that we could even just have a single "over 18" bracket, but this allows for a little more
 > +// granularity if desired. Changes to the rtems_age_set_bracket logic in age_verify.c would be needed if this occurs.
 > +typedef enum {
 > +  AGE_UNDER_13 = 0,
 > +  AGE_13_TO_18 = 1,
 > +  AGE_18_TO_24 = 2,
 > +  AGE_OVER_24  = 3
 > +} rtems_age_bracket;
 > +
 > +// Called by OS or application setup process (verification request)
 > +rtems_status_code rtems_age_set_bracket(rtems_age_bracket bracket);
 > +
 > +// Called by applications (the signal)

@opticron I corrected the comment formatting and added the doxygen headers. I'm not sure if these headers are done correctly as I'm not familiar with how doxygen works but this is what I gleaned from looking at other files. Let me know if there's a change needed.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145747
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260316/3e81a7c6/attachment-0001.htm>


More information about the bugs mailing list