aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/console_struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/console_struct.h')
-rw-r--r--include/linux/console_struct.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/console_struct.h b/include/linux/console_struct.h
index 5fa605c93428..a12d3f2899a8 100644
--- a/include/linux/console_struct.h
+++ b/include/linux/console_struct.h
@@ -168,6 +168,9 @@ extern void vc_SAK(struct work_struct *work);
168 168
169#define CUR_DEFAULT CUR_UNDERLINE 169#define CUR_DEFAULT CUR_UNDERLINE
170 170
171#define CON_IS_VISIBLE(conp) (*conp->vc_display_fg == conp) 171static inline bool con_is_visible(const struct vc_data *vc)
172{
173 return *vc->vc_display_fg == vc;
174}
172 175
173#endif /* _LINUX_CONSOLE_STRUCT_H */ 176#endif /* _LINUX_CONSOLE_STRUCT_H */