Re: easy softball jiffies quest(ion)

2005-04-08 Thread Vadim Lobanov
button, something very similar to the kensington > interface that's available for, um, windows. i found some xwindow functions > for button pressing events, but i don't know how to get into the mouse driver > or button events in xwindows or gnome, etc. Depends upon what functional

Re: Why system call need to copy the date from the userspace before using it

2005-04-12 Thread Vadim Lobanov
omeone will be able to chime in with. Other input is always welcome. :-) -Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: Why system call need to copy the date from the userspace before using it

2005-04-12 Thread Vadim Lobanov
nk of off-hand is the exit() syscall, but I'm sure that's already handled elsewhere (just not sure of the details) In the end, however, if you believe my previous email, then you should believe that the copy has to happen in any case. I don't have any actual data points on-hand. P

Further copy_from_user() discussion.

2005-04-13 Thread Vadim Lobanov
after, the __copy_from_user() macro does another might_sleep(), with very few instructions in between. But there might be some trick here that I'm missing. Please enlighten. :-) -Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: Further copy_from_user() discussion.

2005-04-14 Thread Vadim Lobanov
On Thu, 14 Apr 2005, Catalin Marinas wrote: > Vadim Lobanov <[EMAIL PROTECTED]> wrote: > > 2. Would it be possible to eliminate the might_sleep() call in > > copy_from_user()? It seems that, very soon after, the __copy_from_user() > > macro does another might_sleep(),

Re: Further copy_from_user() discussion.

2005-04-15 Thread Vadim Lobanov
On Fri, 15 Apr 2005, Catalin Marinas wrote: > Vadim Lobanov <[EMAIL PROTECTED]> wrote: > > I think I misspoke a bit in my email above. The intent was not to > > eliminate all might_sleep() calls from the copy_from_user() code path; > > but rather juggle the source ar

Re: Why system call need to copy the date from the userspace before using it

2005-04-15 Thread Vadim Lobanov
rect copy. If during the copy it hits an invalid page, the exception handler code will run, realize that the exception occurred because of the copy, and return an error code right then and there. Lots of details left out, but this is the 10,000 foot view, I think. -Vadim Lobanov > Is it anyt

Re: Why system call need to copy the date from the userspace before using it

2005-04-16 Thread Vadim Lobanov
trictive than physical memory in terms of what data resides where. > -- > You are in a maze of twisty passages, all alike. Again. > http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD > > -Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linu

[OT] volatile keyword

2005-08-25 Thread Vadim Lobanov
Hi, The recent discussion on the list concerning memory barriers and write ordering took a side-trip to the volatile keyword, especially its correct / incorrect usage. Someone posted a link to the LKML archives, in which the argument is made that it is best to keep 'volatile' _out_ of variable and

Re: [OT] volatile keyword

2005-08-25 Thread Vadim Lobanov
On Thu, 25 Aug 2005, Christopher Friesen wrote: > Vadim Lobanov wrote: > > > I'm positive I'm doing something wrong here. In fact, I bet it's the > > volatile cast within the loop that's wrong; but I'm not sure how to do > > it correctly. Any

Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocked_ioctl

2008-01-09 Thread Vadim Lobanov
unlock_kernel(); } As a sidenote, please don't use f_dentry and f_vfsmnt, since they are just #defines for the correct fields. They were meant to be temporary transition helpers, but (alas) have refused to die thus far. If noone beats me to it, I'll take a look-see at d

Re: [JANITOR PROPOSAL] Switch ioctl functions to ->unlocked_ioctl

2008-01-09 Thread Vadim Lobanov
On Wednesday 09 January 2008 04:00:43 pm Alasdair G Kergon wrote: > On Wed, Jan 09, 2008 at 03:31:00PM -0800, Vadim Lobanov wrote: > > From 2.6.23's fs/ioctl.c - do_ioctl(): > > Ah - you're talking about struct file_operations of course; > I was talking about st

Re: Why is the kfree() argument const?

2008-01-18 Thread Vadim Lobanov
eorder the two function calls, before it cannot assume that the two functions (in their internal implementations) do not touch some other, unknown to this code, global variable. -- Vadim Lobanov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: Why is the kfree() argument const?

2008-01-18 Thread Vadim Lobanov
k, I changed int to extern int, but you see the point? > Do you want complex rules about const, depending on > context (extern, volatile,...) ? Sometimes complexity is worth it. -- Vadim Lobanov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: Why is the kfree() argument const?

2008-01-18 Thread Vadim Lobanov
On Friday 18 January 2008 11:31:05 am Zan Lynx wrote: > On Fri, 2008-01-18 at 11:14 -0800, Vadim Lobanov wrote: > > Second, even if const did have stronger semantics that forbade the value > > of x from being modified during execution of foo, the compiler still > > coul

Re: [RFC] Documentation about unaligned memory access

2007-11-23 Thread Vadim Lobanov
struct foo { > u16 field1; > u8 field3; > u32 field2; > }; It will actually shrink it by 4 bytes, for the very same reason. -- Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: Why is the kfree() argument const?

2008-01-18 Thread Vadim Lobanov
s emphatically not how C is currently defined, and you're basically inventing an entirely new language... C2009 perhaps? :-) -- Vadim Lobanov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Feature request: exec self for NOMMU.

2006-12-26 Thread Vadim Lobanov
On Wed, 2006-12-27 at 00:51 -0500, Rob Landley wrote: > On Wednesday 27 December 2006 12:13 am, Ray Lee wrote: > > How about openning an fd to yourself at the beginning of execution, then > > calling fexecve later? > > I haven't got a man page for fexecve. Does libc have it? It's implemented ins

[PATCH] fdtable: Provide free_fdtable() wrapper.

2006-12-19 Thread Vadim Lobanov
, which simply wrap the release RCU usage. Since free_fdtable() is a one-liner, it makes sense to promote it to an inline helper. Please apply. Signed-off-by: Vadim Lobanov <[EMAIL PROTECTED]> diff -pru old/fs/file.c new/fs/file.c --- old/fs/file.c 2006-12-19 19:54:23.0 -0800 +

Re: [DISCUSS] Making system calls more portable.

2007-01-07 Thread Vadim Lobanov
contains the > mapping from the system call name to its number. I hope that I made some > sense. I thought that this file was "shipped upwards" by the kernel already, as a sanitized header? -- Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux

Re: [PATCH] include/linux/slab.h: new KFREE() macro.

2007-01-07 Thread Vadim Lobanov
elf, makes no statements regarding freed pointers, since the intent is not to use them after they've been freed anyway. -- Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] include/linux/slab.h: new KFREE() macro.

2007-01-07 Thread Vadim Lobanov
hibitively large, the function should be allocating all the memory in a single pass. So, where's the demonstrated need for KFREE()? -- Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] include/linux/slab.h: new KFREE() macro.

2007-01-07 Thread Vadim Lobanov
pufreq/acpi-cpufreq.c- > acpi_perf_data[j] = NULL; 'acpi_perf_data' is a global and persistent data structure, where a NULL value actually has a specific and distinct meaning (as in acpi_cpufreq_cpu_init()). How you think this helps your argument with setting

Re: [PATCH] include/linux/slab.h: new KFREE() macro.

2007-01-08 Thread Vadim Lobanov
hin the kernel. The fact that I'm not alone in voicing such disagreement should mean something. -- Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/ma

Re: trouble loading self compiled vanilla kernel

2007-01-08 Thread Vadim Lobanov
does not get generated (correctly or at all). Although unlikely to be the problem, it's a simple thing to eliminate from the list of possible borkages. -- Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PR

Re: Patch to fixe Data Acess error in dup_fd

2006-11-17 Thread Vadim Lobanov
(non-distro) kernels may be your best bet, then. I have tried to replicate this issue in my spare time, but so far have been unsuccessful. -- Vadim Lobanov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More m

Re: [REGRESSION v4.7] i915 / drm crash when undocking from DP monitors

2016-10-11 Thread Vadim Lobanov
Certainly, done and done. The bug is filed at: https://bugs.freedesktop.org/show_bug.cgi?id=98211 Thanks! On Tue, Oct 11, 2016 at 6:55 AM, Jani Nikula wrote: > On Sat, 08 Oct 2016, Vadim Lobanov wrote: >> I'm seeing a repeatable crash on my HP EliteBook 840 G2/2216 when >>

[REGRESSION v4.7] i915 / drm crash when undocking from DP monitors

2016-10-07 Thread Vadim Lobanov
Hi folks, I'm seeing a repeatable crash on my HP EliteBook 840 G2/2216 when booting it while in a docking station connected to two external DisplayPort monitors, undocking, and then either logging out or shutting down -- regardless of whether I've redocked it beforehand or not. Both logout and shu