[PATCH] Infrastructure to un-/lock vts in vt_ioctl.c

2015-03-26 Thread Simone Weiss
the owner of a sppecified VT to set the lock flag. VT_UNLOCK: allows caller with root permissions to reset the lock flag VT_ISLOCKED: returns the value of the lock flag If anyone tries to switch to a locked VT he gets redirected to VT 12 in complete_change_console. Signed-off-by: Simone Weiss Signed

[PATCH] Infrastructure to un-/lock vts in vt_ioctl.c

2015-03-26 Thread Simone Weiss
the owner of a sppecified VT to set the lock flag. VT_UNLOCK: allows caller with root permissions to reset the lock flag VT_ISLOCKED: returns the value of the lock flag If anyone tries to switch to a locked VT he gets redirected to VT 12 in complete_change_console. Signed-off-by: Simone Weiss simone.we

Re: questions to planned lock-functionality for vts

2015-03-23 Thread simone . weiss
al, it wouldn't only work when wayland is used, but as well on servers and systems that are not going to use wayland. And wayland doesn't seem to be ready soon. Regards Simone Weiss -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: questions to planned lock-functionality for vts

2015-03-23 Thread simone . weiss
is VTs. Thanks Simone Weiss -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: questions to planned lock-functionality for vts

2015-03-23 Thread simone . weiss
he above describes only the interaction with a userspace programm. For the kernel it would only mean that if a vt is locked it wouldn't allow to switch to this vt and instead switch to VT12. Regards, Simone Weiss -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: questions to planned lock-functionality for vts

2015-03-23 Thread simone . weiss
-process, you're even safe if your screensaver crashes. Yes but this would lock the whole machine. Our plan is to make it posible to lock a specific set of VTs - owned by the user who wants to lock. e.g if user A locked all his VTs user B would still be able to switch to his VTs. Thanks Simone

Re: questions to planned lock-functionality for vts

2015-03-23 Thread simone . weiss
wonder why it's supposed to be the better way? Thanks David Hello, Our approch would be more universal, it wouldn't only work when wayland is used, but as well on servers and systems that are not going to use wayland. And wayland doesn't seem to be ready soon. Regards Simone Weiss

Re: questions to planned lock-functionality for vts

2015-03-23 Thread simone . weiss
that if a vt is locked it wouldn't allow to switch to this vt and instead switch to VT12. Regards, Simone Weiss -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v4 4/6] dgnc: checkpatch: macros in enclosed parantheses

2015-01-15 Thread Simone Weiss
dpacompat.h and digi.h partly define the same macros, so it is necessary to change them both. I also removed some defines as they were unnecessary, because they were already defined, or because they were never used. Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers

[PATCH v4 4/6] dgnc: checkpatch: macros in enclosed parantheses

2015-01-15 Thread Simone Weiss
dpacompat.h and digi.h partly define the same macros, so it is necessary to change them both. I also removed some defines as they were unnecessary, because they were already defined, or because they were never used. Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger

[PATCH v3 4/6] dgnc: checkpatch: macros in enclosed parantheses

2015-01-14 Thread Simone Weiss
dpacompat.h and digi.h partly define the same macros, so it is necessary to change them both. Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/digi.h | 58 drivers/staging/dgnc/dpacompat.h | 12 - 2 files

[PATCH v3 4/6] dgnc: checkpatch: macros in enclosed parantheses

2015-01-14 Thread Simone Weiss
dpacompat.h and digi.h partly define the same macros, so it is necessary to change them both. Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/digi.h | 58 drivers

[PATCH v2] Redone: dgnc/digi.h: checkpatch: Macros in enclosed

2014-12-23 Thread Simone Weiss
I've redone the previous patch as I have also forgotten a macro. Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/digi.h | 60 ++--- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/dgnc

[PATCH v2] Redone: dgnc/digi.h: checkpatch: Macros in enclosed

2014-12-23 Thread Simone Weiss
I've redone the previous patch as I have also forgotten a macro. Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/digi.h | 60 ++--- 1 file changed, 30 insertions(+), 30

[PATCH] dgnc/digi.h: checkpatch: Changend complex macros (enclosed parantheses)

2014-12-22 Thread Simone Weiss
The patch previous in this thread (dgnc/dpacompat.h) defines partly the same macros as dgnc/digi.h and so it is neccessary tochange the macros in this file as well, so no macros get redefined Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/digi.h | 52

[PATCH] [PATCH v2 2/6] dgnc/dgnc_sysfs.c: checkpatch: Use of dev_err ? instead of printk

2014-12-22 Thread Simone Weiss
I originally wanted to replace both of the printk cals in this file with dev_err(). But in the function dgnc_create_driver_sysfiles only the struct pci_driver was given, sadly I coudn't figure out a way to get a struct device when only a struct pci_driver is given. Signed-off-by: Simone

[PATCH] [PATCH v2 2/6] dgnc/dgnc_sysfs.c: checkpatch: Use of dev_err ? instead of printk

2014-12-22 Thread Simone Weiss
I originally wanted to replace both of the printk cals in this file with dev_err(). But in the function dgnc_create_driver_sysfiles only the struct pci_driver was given, sadly I coudn't figure out a way to get a struct device when only a struct pci_driver is given. Signed-off-by: Simone

[PATCH] dgnc/digi.h: checkpatch: Changend complex macros (enclosed parantheses)

2014-12-22 Thread Simone Weiss
The patch previous in this thread (dgnc/dpacompat.h) defines partly the same macros as dgnc/digi.h and so it is neccessary tochange the macros in this file as well, so no macros get redefined Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen

[PATCH 5/6] dgnc/dgnc_neo.c: checkpatch: fixed long lines

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/dgnc_neo.c | 214 1 file changed, 149 insertions(+), 65 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index c9a8a98

[PATCH 2/6] dgnc/dgnc_sysfs.c: checkpatch: Use of pr_err insted of printk

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/dgnc_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c index 2fd34ca..0fa2388 100644 --- a/drivers/staging

[PATCH 0/6] dgnc: patches that fix checkpatch issues

2014-12-21 Thread Simone Weiss
We fixed some coding style issues in staging/dgnc. Mostly it fixes lines over 80 characters (dgnc_neo.c, dgnc_cls.h, dgnc_compact.h, dgnc_driver.h) In dgnc_sysfs.c we replaced printk by pr_err. In dpacompat.h we also set complex macros into enclosed parantheses Signed-off-by: Simone Weiss

[PATCH 3/6] dgnc/dpacompat.h: checkpatch: fixed long lines bei moving comments

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/dpacompat.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dpacompat.h b/drivers/staging/dgnc/dpacompat.h index b2d2dc0..feb4f60 100644 --- a/drivers/staging/dgnc

[PATCH 6/6] dgnc/dgnc_driver.h: checkpatch: fixed lines over 80 characters

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/dgnc_driver.h | 71 +++--- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h index a8157eb

[PATCH 1/6] dgnc/dgnc_cls.h: checkpatch: fixed long lines by moving comments

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/dgnc_cls.h | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_cls.h b/drivers/staging/dgnc/dgnc_cls.h index 465d79a..d1543c1 100644 --- a/drivers/staging

[PATCH 4/6] dgnc/dpacompat.h: checkpatch: Changend complex macros (enclosed parantheses)

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss Signed-off-by: Helene Gsaenger --- drivers/staging/dgnc/dpacompat.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/dgnc/dpacompat.h b/drivers/staging/dgnc/dpacompat.h index feb4f60..8049e9d 100644 --- a/drivers

[PATCH 4/6] dgnc/dpacompat.h: checkpatch: Changend complex macros (enclosed parantheses)

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/dpacompat.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/dgnc/dpacompat.h b/drivers/staging/dgnc/dpacompat.h

[PATCH 3/6] dgnc/dpacompat.h: checkpatch: fixed long lines bei moving comments

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/dpacompat.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dpacompat.h b/drivers/staging/dgnc/dpacompat.h index

[PATCH 6/6] dgnc/dgnc_driver.h: checkpatch: fixed lines over 80 characters

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/dgnc_driver.h | 71 +++--- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b

[PATCH 1/6] dgnc/dgnc_cls.h: checkpatch: fixed long lines by moving comments

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/dgnc_cls.h | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_cls.h b/drivers/staging/dgnc/dgnc_cls.h

[PATCH 0/6] dgnc: patches that fix checkpatch issues

2014-12-21 Thread Simone Weiss
We fixed some coding style issues in staging/dgnc. Mostly it fixes lines over 80 characters (dgnc_neo.c, dgnc_cls.h, dgnc_compact.h, dgnc_driver.h) In dgnc_sysfs.c we replaced printk by pr_err. In dpacompat.h we also set complex macros into enclosed parantheses Signed-off-by: Simone Weiss

[PATCH 2/6] dgnc/dgnc_sysfs.c: checkpatch: Use of pr_err insted of printk

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/dgnc_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c index

[PATCH 5/6] dgnc/dgnc_neo.c: checkpatch: fixed long lines

2014-12-21 Thread Simone Weiss
Signed-off-by: Simone Weiss simone.we...@fau.de Signed-off-by: Helene Gsaenger helene.gsaen...@studium.fau.de --- drivers/staging/dgnc/dgnc_neo.c | 214 1 file changed, 149 insertions(+), 65 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b