summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
diff options
context:
space:
mode:
authorDaniel Cederman <cederman@gaisler.com>2014-11-14 08:58:00 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2014-12-02 13:41:15 +0100
commit69e3f272d9c67c1b46801670882c3df149e2d941 (patch)
tree0ce7bf68c69bd3ba0afc49e2c851bb0815262f90 /cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
parenttools: Provide strnlen() if missing (diff)
downloadrtems-69e3f272d9c67c1b46801670882c3df149e2d941.tar.bz2
net: Add network task affinity config
This patch adds a default network tasks CPU affinity configuration option. The network drivers have the option to create their own daemon tasks with a custom CPU affinity set, or rely on the default set.
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_bsdnet_internal.h')
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet_internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 865b644d4c..5be781b4c8 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -157,6 +157,18 @@ rtems_id rtems_bsdnet_newproc (
void *arg
);
+#ifdef RTEMS_SMP
+/* As rtems_bsdnet_newproc() but with ability to set CPU affinity too */
+rtems_id rtems_bsdnet_newproc_affinity (
+ char *name,
+ int stacksize,
+ void (*entry)(void *),
+ void *arg,
+ const cpu_set_t *set,
+ const size_t setsize
+);
+#endif
+
rtems_status_code rtems_bsdnet_event_receive (
rtems_event_set event_in,
rtems_option option_set,