summaryrefslogtreecommitdiff
path: root/arch/um/drivers/chan_user.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-05-25 01:08:43 +0300
committerRichard Weinberger <richard@nod.at>2020-01-20 00:41:50 +0300
commitf1dc67d0e7df21b3d27beb3ec7b2c9e2b721daff (patch)
tree1fab249f28cc096a60b453278567b0b3ca581cad /arch/um/drivers/chan_user.h
parentb3a987b0264d3ddbb24293ebff10eddfc472f653 (diff)
downloadlinux-f1dc67d0e7df21b3d27beb3ec7b2c9e2b721daff.tar.xz
um: Add an option to make serial driver non-raw
In some cases, for example when the program(s) running inside UML isn't/aren't interactive (like the hwsim tests for wpa_supplicant) there's really no value in having the serial lines configured to be raw as they are now by default. Setting them to non-raw lets one abort the whole UML with Ctrl-C, which is really the right thing to do in these cases, basically the whole UML instance is more like a single (testing) program. Add a "ssl-non-raw" option to UML to support such a mode. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/drivers/chan_user.h')
-rw-r--r--arch/um/drivers/chan_user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/chan_user.h b/arch/um/drivers/chan_user.h
index 72222bb036f5..4e51b85e2a23 100644
--- a/arch/um/drivers/chan_user.h
+++ b/arch/um/drivers/chan_user.h
@@ -11,7 +11,7 @@
struct chan_opts {
void (*const announce)(char *dev_name, int dev);
char *xterm_title;
- const int raw;
+ int raw;
};
struct chan_ops {