Skip to content

Commit d120ea2

Browse files
biabbastgross35
authored andcommitted
VxWorks: Add functions from vxCpuLib.h and taskLib.h
(backport <#3861>) (cherry picked from commit 7cf499d)
1 parent f1a977b commit d120ea2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/vxworks/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,10 @@ extern "C" {
18121812
pub fn taskIdSelf() -> ::TASK_ID;
18131813
pub fn taskDelay(ticks: ::_Vx_ticks_t) -> ::c_int;
18141814

1815+
// taskLib.h
1816+
pub fn taskNameSet(task_id: ::TASK_ID, task_name: *mut ::c_char) -> ::c_int;
1817+
pub fn taskNameGet(task_id: ::TASK_ID, buf_name: *mut ::c_char, bufsize: ::size_t) -> ::c_int;
1818+
18151819
// rtpLibCommon.h
18161820
pub fn rtpInfoGet(rtpId: ::RTP_ID, rtpStruct: *mut ::RTP_DESC) -> ::c_int;
18171821
pub fn rtpSpawn(
@@ -1871,6 +1875,10 @@ extern "C" {
18711875
) -> ::c_int;
18721876
pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int;
18731877
pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int;
1878+
1879+
// vxCpuLib.h
1880+
fn vxCpuEnabledGet() -> ::cpuset_t; // Get set of running CPU's in the system
1881+
fn vxCpuConfiguredGet() -> ::cpuset_t; // Get set of Configured CPU's in the system
18741882
}
18751883

18761884
//Dummy functions, these don't really exist in VxWorks.

0 commit comments

Comments
 (0)