Skip to content

RFC API renaming: "llist" (lockless list) to "llstack" (lockless stack)

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Rename the "llist" (lockless list) to "llstack" (lockless stack)drivers/acpi/apei/Kconfig drivers/acpi/apei/ghes.c include/linux/llist.h +5 more+268 -2673 replies
2/2llstack: make llstack_push return "prior empty state" informationinclude/linux/llstack.h lib/llstack.c+16 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC patch 0/2] API renaming: "llist" (lockless list) to "llstack" (lockless stack)

Hi,

I am proposing these 2 patches:

1) Rename the llist API into llstack
2) make llstack_push return "prior empty state" information

The API change in (2) assumes that this "lockless list" behaves like a stack. Having a "list" API that has a stack behavior cast in stone does not make sense, but nevertheless some stack properties are really useful. So reflect the behavior of the lockless structure (stack/lifo) into the API.

These patches apply on Linux v3.1-rc4.

Comments are welcome,

Best regards,

Mathieu

Signature · 4 lines
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com