From 6df9f02d9de67572ab8bd34855eca233c16ced47 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 22 Jun 2013 13:19:36 -0400 Subject: [PATCH] doc/examples: introduce urcu-flavors examples directory Signed-off-by: Mathieu Desnoyers --- doc/examples/Makefile.am | 10 +++++----- .../{rcu-flavor-qsbr => urcu-flavors}/Makefile | 4 ++-- .../Makefile.qsbr} | 2 +- .../rcu-flavor-qsbr.c => urcu-flavors/qsbr.c} | 2 ++ 4 files changed, 10 insertions(+), 8 deletions(-) rename doc/examples/{rcu-flavor-qsbr => urcu-flavors}/Makefile (88%) rename doc/examples/{rcu-flavor-qsbr/Makefile.rcu-flavor-qsbr => urcu-flavors/Makefile.qsbr} (96%) rename doc/examples/{rcu-flavor-qsbr/rcu-flavor-qsbr.c => urcu-flavors/qsbr.c} (98%) diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 74e2666..5db9fd5 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -1,11 +1,11 @@ doc_examplesdir = ${docdir}/examples -doc_examples_rcu_flavor_qsbrdir = ${doc_examplesdir}/rcu-flavor-qsbr +doc_examples_urcu_flavorsdir = ${doc_examplesdir}/urcu-flavors -dist_doc_examples_rcu_flavor_qsbr_DATA = \ - rcu-flavor-qsbr/Makefile \ - rcu-flavor-qsbr/Makefile.rcu-flavor-qsbr \ - rcu-flavor-qsbr/rcu-flavor-qsbr.c +dist_doc_examples_urcu_flavors_DATA = \ + urcu-flavors/Makefile \ + urcu-flavors/Makefile.qsbr \ + urcu-flavors/qsbr.c dist_doc_examples_DATA = \ Makefile.examples.template diff --git a/doc/examples/rcu-flavor-qsbr/Makefile b/doc/examples/urcu-flavors/Makefile similarity index 88% rename from doc/examples/rcu-flavor-qsbr/Makefile rename to doc/examples/urcu-flavors/Makefile index 8e50722..80278e8 100644 --- a/doc/examples/rcu-flavor-qsbr/Makefile +++ b/doc/examples/urcu-flavors/Makefile @@ -12,8 +12,8 @@ # This makefile is purposefully kept simple to support GNU and BSD make. all: - $(MAKE) -f Makefile.rcu-flavor-qsbr + $(MAKE) -f Makefile.qsbr .PHONY: clean clean: - $(MAKE) -f Makefile.rcu-flavor-qsbr clean + $(MAKE) -f Makefile.qsbr clean diff --git a/doc/examples/rcu-flavor-qsbr/Makefile.rcu-flavor-qsbr b/doc/examples/urcu-flavors/Makefile.qsbr similarity index 96% rename from doc/examples/rcu-flavor-qsbr/Makefile.rcu-flavor-qsbr rename to doc/examples/urcu-flavors/Makefile.qsbr index fc85278..dc28ddd 100644 --- a/doc/examples/rcu-flavor-qsbr/Makefile.rcu-flavor-qsbr +++ b/doc/examples/urcu-flavors/Makefile.qsbr @@ -11,7 +11,7 @@ # # This makefile is purposefully kept simple to support GNU and BSD make. -EXAMPLE_NAME = rcu-flavor-qsbr +EXAMPLE_NAME = qsbr SOURCES = $(EXAMPLE_NAME).c OBJECTS = $(EXAMPLE_NAME).o diff --git a/doc/examples/rcu-flavor-qsbr/rcu-flavor-qsbr.c b/doc/examples/urcu-flavors/qsbr.c similarity index 98% rename from doc/examples/rcu-flavor-qsbr/rcu-flavor-qsbr.c rename to doc/examples/urcu-flavors/qsbr.c index 2b722c0..1c50b8a 100644 --- a/doc/examples/rcu-flavor-qsbr/rcu-flavor-qsbr.c +++ b/doc/examples/urcu-flavors/qsbr.c @@ -26,6 +26,8 @@ #include /* For CAA_ARRAY_SIZE */ /* + * Example showing how to use the QSBR Userspace RCU flavor. + * * This is a mock-up example where updates and RCU traversals are * performed by the same thread to keep things simple on purpose. */ -- 2.34.1