summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-07-23 12:15:16 -0700
committerNoah Watkins <noahwatkins@gmail.com>2013-09-17 10:12:06 -0700
commit975c43c56bd8c22ced1bbdd4ac72bf4482617393 (patch)
treeacf4e421d506587a1d66f166ad0c37eac9243af9
parentb495563ddf73b319f67dd211dc0a026a24b094d3 (diff)
downloadceph-975c43c56bd8c22ced1bbdd4ac72bf4482617393.tar.gz
doc: add dev doc to collect porting notes
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rw-r--r--doc/dev/porting.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/dev/porting.rst b/doc/dev/porting.rst
new file mode 100644
index 00000000000..8f3cf7c9bea
--- /dev/null
+++ b/doc/dev/porting.rst
@@ -0,0 +1,19 @@
+Porting To New Platforms
+========================
+
+Running Ceph on new platforms requires porting platform-specific functionality
+to the target platform.
+
+Get Process Name
+----------------
+
+Lookup the name of the running process.
+
+Supported:
+
+On Linux since 2.6.11 ``prctl(2)`` can be used with the ``PR_GET_NAME`` flag.
+
+Platform References:
+
+- Darwin: http://stackoverflow.com/questions/3018054/retrieve-names-of-running-processes
+- Darwin: http://stackoverflow.com/questions/12273546/get-name-from-pid