Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Marin Purgar - PMC <pmc@asgard.hr>
Subject: Re: Linux-2.1.
Date: Thu, 17 Oct 1996 23:30:06 +0100 (GMT+0100)	[thread overview]
Message-ID: <7bb1ccf25e2907ae4169acf3f24f26a6.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.91.961017082647.20618H-100000@linux.cs.Helsinki.FI>

Hi!

On Thu, 17 Oct 1996, Linus Torvalds wrote:
> 
> Now, because the checking cannot be moved outside the loop, some loops have
> to be moved inside the checking if we want to have the best possible
> performance. That's why I want to add the new functions "clear_user()" and
> "strncpy_from_user()" : those are things where we're currently looping
> outside the exception code for no really good reason (as a side note:  those
> are also things that generally need architecture-specific functions for the
> best performance anyway).

There is still issue (tought not directly related to kernel source). What
to do with such functions when the exception occurs in the middle of
user space cleared, copyed from or copyed to (assuming functions as
clear_user, strncpy_from_user, strncpy_to_user) ? Should they return the
acctual number of bytes cleared/trensfered or just EINVAL assuming the
function has failed completly (even if some partition of memory was
cleared/transfered) ?

> All the other loops I have looked through that do checking inside the loop
> are not really a problem. They do some non-trivial operation on the data
> inside the loop (translating a byte with opost processing in the case of the
> tty layer, for example), and as such the very small overhead caused by the
> exception handling isn't really an issue.
> 

bb4now,
PMC

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

      parent reply	other threads:[~1996-10-17 22:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.91.961017082647.20618H-100000@linux.cs.Helsinki.FI>
1996-10-17 10:00 ` Linux-2.1.4 Ingo Molnar
1996-10-17 22:30 ` Marin Purgar - PMC [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox