Skip to content

Commit 72cb7aa

Browse files
authored
Merge pull request #3861 from biabbas/vxworks
VxWorks: Add some functions from `vxCpuLib.h` and `taskLib.h`
2 parents 1178c25 + 7cf499d commit 72cb7aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/vxworks/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,10 @@ extern "C" {
18131813
pub fn taskIdSelf() -> ::TASK_ID;
18141814
pub fn taskDelay(ticks: ::_Vx_ticks_t) -> ::c_int;
18151815

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

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

0 commit comments

Comments
 (0)