X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Fvt_kern.h;h=d961635d0e618038cae7ebbcc3abcacddce4f59d;hb=b5f0adbcc4f16e378882d8f68fe3111df04911be;hp=918a29763aea3e0afb58cb78d62db873bad16169;hpb=0a7d5f8ce960e74fa22986bda4af488539796e49;p=powerpc.git diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 918a29763a..d961635d0e 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -33,7 +34,8 @@ extern int fg_console, last_console, want_console; int vc_allocate(unsigned int console); int vc_cons_allocated(unsigned int console); int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int lines); -void vc_disallocate(unsigned int console); +int vc_lock_resize(struct vc_data *vc, unsigned int cols, unsigned int lines); +void vc_deallocate(unsigned int console); void reset_palette(struct vc_data *vc); void do_blank_screen(int entering_gfx); void do_unblank_screen(int leaving_gfx); @@ -81,6 +83,14 @@ void reset_vc(struct vc_data *vc); #define CON_BUF_SIZE (CONFIG_BASE_SMALL ? 256 : PAGE_SIZE) extern char con_buf[CON_BUF_SIZE]; -extern struct semaphore con_buf_sem; +extern struct mutex con_buf_mtx; +extern char vt_dont_switch; + +struct vt_spawn_console { + spinlock_t lock; + struct pid *pid; + int sig; +}; +extern struct vt_spawn_console vt_spawn_con; #endif /* _VT_KERN_H */