Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vcs: invoke the vt update callback when /dev/vcs* is written to

A notifier chain is called whenever the vt code modifies a terminal
content, except for one case which is when the modification comes
through writes to /dev/vcs* devices. Let's add the missing notifier
invocation at the end of vcs_write() for that case too.

Signed-off-by: Nicolas Pitre <nicolas.pitre@canonical.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Nicolas Pitre and committed by
Greg Kroah-Hartman
432c9ed2 47725ac7

+8
+2
drivers/char/vc_screen.c
··· 538 538 } 539 539 *ppos += written; 540 540 ret = written; 541 + if (written) 542 + vcs_scr_updated(vc); 541 543 542 544 unlock_out: 543 545 release_console_sem();
+5
drivers/char/vt.c
··· 4182 4182 } 4183 4183 } 4184 4184 4185 + void vcs_scr_updated(struct vc_data *vc) 4186 + { 4187 + notify_update(vc); 4188 + } 4189 + 4185 4190 /* 4186 4191 * Visible symbols for modules 4187 4192 */
+1
include/linux/selection.h
··· 39 39 40 40 extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org); 41 41 extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); 42 + extern void vcs_scr_updated(struct vc_data *vc); 42 43 43 44 #endif