[lkml]   [2003]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] cryptoapi: Fix sleeping
On Thu, 14 Aug 2003, Matt Mackall wrote:

> It's basically trying to be friendly. Since we can't really detect
> when it's safe to do such yields, we should be explicitly flag the
> uses where its ok. Something like this:

I think this is the best approach.

> #define CRYPTO_TFM_MODE_MASK 0x000000ff
> #define CRYPTO_TFM_REQ_MASK 0x000fff00
> -#define CRYPTO_TFM_RES_MASK 0xfff00000
> +#define CRYPTO_TFM_RES_MASK 0x7ff00000
> +#define CRYPTO_TFM_API_MASK 0x80000000

This doesn't leave much room for API flags -- the CRYPTO_TFM_REQ_MASK
could be made smaller.

- James
James Morris

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.077 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site