RTEMS | libi2c: Use RTEMS thread API and support initialization at device driver level (!821)

Gedare Bloom (@gedare) gitlab at rtems.org
Mon Dec 8 20:20:29 UTC 2025




Gedare Bloom started a new discussion on cpukit/libi2c/libi2c.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/821#note_136986

 >    rtems_status_code err;
 >    rtems_device_minor_number minor;
 >  
 > -  if (libmutex == RTEMS_ID_NONE) {
 > +  if (!rtems_libi2c_is_initialized){

if this function is called w/o the lock held, then need to lock around this shared variable?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/821#note_136986
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/20251208/4c05b5c6/attachment.htm>


More information about the bugs mailing list