Skip to contentSkip to conversation

acquire_console_sem exported, but not release_console_sem?

DISCUSSION Michael C. Toren 2 participants 2 messages Jan 13, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

In kernel/printk.c, it looks like acquire_console_sem() is exported, but not release_console_sem()? Is this intentional, or just an oversight?

Thanks,

-mct

#1 lore raw
Quoted 5 lines · Michael C. Toren

Hi,

In kernel/printk.c, it looks like acquire_console_sem() is exported, but not release_console_sem()? Is this intentional, or just an oversight?

Oversight. It's possible that some modular video drivers will need to acquire this lock, so it should be exported. At this time, it's only fbcon.c and that code doesn't support modular linkage, so nobody has noticed.

kernel/printk.c +1 -0
@@ -529,6 +529,7 @@ void release_console_sem(void)
 	if (must_wake_klogd && !oops_in_progress)
 		wake_up_interruptible(&log_wait);
 }
+EXPORT_SYMBOL(release_console_sem);
 
 /** console_conditional_schedule - yield the CPU if required
  *