|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v3 5/5] xen/console: rename console_rx to console_domid
From: Denis Mukhin <dmukhin@xxxxxxxx>
Update the symbol name to match the code better.
No functional change.
Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>
---
Changes since v2:
- new patch
---
xen/drivers/char/console.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index ff20706ac9..afcc6a236e 100644
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -467,11 +467,11 @@ static void cf_check dump_console_ring_key(unsigned char
key)
#define switch_code (opt_conswitch[0]-'a'+1)
/* Console owner domain identifier. */
-static domid_t __read_mostly console_rx = DOMID_XEN;
+static domid_t __read_mostly console_domid = DOMID_XEN;
static struct domain *console_get_domain(void)
{
- struct domain *d = rcu_lock_domain_by_id(console_rx);
+ struct domain *d = rcu_lock_domain_by_id(console_domid);
if ( !d )
return NULL;
@@ -497,7 +497,7 @@ static void console_set_domid(domid_t domid)
else
printk("*** Serial input to DOM%u", domid);
- console_rx = domid;
+ console_domid = domid;
if ( switch_code )
printk(" (type 'CTRL-%c' three times to switch input)",
@@ -507,7 +507,7 @@ static void console_set_domid(domid_t domid)
domid_t console_get_domid(void)
{
- return console_rx;
+ return console_domid;
}
/*
@@ -518,10 +518,10 @@ static void console_switch_input(void)
{
domid_t hint;
- if ( console_rx == DOMID_XEN )
+ if ( console_domid == DOMID_XEN )
hint = get_initial_domain_id();
else
- hint = console_rx + 1;
+ hint = console_domid + 1;
hint = domid_find_with_input_allowed(hint);
@@ -533,7 +533,7 @@ static void __serial_rx(char c)
struct domain *d;
int rc = 0;
- if ( console_rx == DOMID_XEN )
+ if ( console_domid == DOMID_XEN )
return handle_keypress(c, false);
d = console_get_domain();
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |