summaryrefslogtreecommitdiff
path: root/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2014-05-30 16:38:03 +0200
committerDaniel Cederman <cederman@gaisler.com>2014-06-27 11:03:25 +0200
commitf1651688194c343c05fc011ffd93fde48b52ad99 (patch)
treefff3be24bbb6f2e3b53e0a5c0f75f9d2f1937cdd /cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
parentb09b8e5255f6ae94445b12fecbbd38ab536b5956 (diff)
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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 05e54b272f..6869579b83 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -155,6 +155,17 @@ 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
+);
+#endif
+
rtems_status_code rtems_bsdnet_event_receive (
rtems_event_set event_in,
rtems_option option_set,