MCPcopy Create free account
hub / github.com/apache/nuttx / load_default_priority

Function load_default_priority

binfmt/binfmt_loadmodule.c:62–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 ****************************************************************************/
61
62static int load_default_priority(FAR struct binary_s *bin)
63{
64 struct sched_param param;
65 int ret;
66
67 /* Get the priority of this thread */
68
69 ret = nxsched_get_param(0, &param);
70 if (ret < 0)
71 {
72 berr("ERROR: nxsched_get_param failed: %d\n", ret);
73 return ret;
74 }
75
76 /* Save that as the priority of child thread */
77
78 bin->priority = param.sched_priority;
79 if (bin->priority <= 0)
80 {
81 bin->priority = SCHED_PRIORITY_DEFAULT;
82 }
83
84 return ret;
85}
86
87/****************************************************************************
88 * Name: load_absmodule

Callers 1

load_moduleFunction · 0.85

Calls 1

nxsched_get_paramFunction · 0.85

Tested by

no test coverage detected