File tree 2 files changed +17
-4
lines changed
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -3822,6 +3822,8 @@ int con_is_bound(const struct consw *csw)
3822
3822
{
3823
3823
int i , bound = 0 ;
3824
3824
3825
+ WARN_CONSOLE_UNLOCKED ();
3826
+
3825
3827
for (i = 0 ; i < MAX_NR_CONSOLES ; i ++ ) {
3826
3828
if (con_driver_map [i ] == csw ) {
3827
3829
bound = 1 ;
@@ -3833,6 +3835,20 @@ int con_is_bound(const struct consw *csw)
3833
3835
}
3834
3836
EXPORT_SYMBOL (con_is_bound );
3835
3837
3838
+ /**
3839
+ * con_is_visible - checks whether the current console is visible
3840
+ * @vc: virtual console
3841
+ *
3842
+ * RETURNS: zero if not visible, nonzero if visible
3843
+ */
3844
+ bool con_is_visible (const struct vc_data * vc )
3845
+ {
3846
+ WARN_CONSOLE_UNLOCKED ();
3847
+
3848
+ return * vc -> vc_display_fg == vc ;
3849
+ }
3850
+ EXPORT_SYMBOL (con_is_visible );
3851
+
3836
3852
/**
3837
3853
* con_debug_enter - prepare the console for the kernel debugger
3838
3854
* @sw: console driver
Original file line number Diff line number Diff line change @@ -168,9 +168,6 @@ extern void vc_SAK(struct work_struct *work);
168
168
169
169
#define CUR_DEFAULT CUR_UNDERLINE
170
170
171
- static inline bool con_is_visible (const struct vc_data * vc )
172
- {
173
- return * vc -> vc_display_fg == vc ;
174
- }
171
+ bool con_is_visible (const struct vc_data * vc );
175
172
176
173
#endif /* _LINUX_CONSOLE_STRUCT_H */
You can’t perform that action at this time.
0 commit comments