Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
8ed5411c
Commit
8ed5411c
authored
Sep 27, 2019
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdh_GetNodeInfo() added
parent
b75b89a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
src/lib/rt/src/rt_gdh.c
src/lib/rt/src/rt_gdh.c
+29
-0
No files found.
src/lib/rt/src/rt_gdh.c
View file @
8ed5411c
...
...
@@ -1806,6 +1806,35 @@ pwr_tStatus gdh_GetNodeObject(pwr_tNodeId nid, /**< The node index. */
return
sts
;
}
pwr_tStatus
gdh_GetNodeInfo
(
pwr_tNodeId
nid
,
/**< The node index. */
gdh_sNodeInfo
*
ip
/**< Receive the node info. */
)
{
pwr_tStatus
sts
=
GDH__SUCCESS
;
gdb_sNode
*
np
;
if
(
ip
==
NULL
)
return
GDH__BADARG
;
gdh_ScopeLock
{
np
=
hash_Search
(
&
sts
,
gdbroot
->
nid_ht
,
&
nid
);
if
(
np
!=
NULL
)
{
ip
->
nodidx
=
np
->
nid
;
ip
->
nix
=
np
->
vol_oid
.
vid
;
strcpy
(
ip
->
nodename
,
np
->
name
);
ip
->
objid
=
np
->
nod_oid
;
ip
->
linkstate
=
0
;
ip
->
upcnt
=
np
->
upcnt
;
ip
->
timeup
=
np
->
timeup
;
ip
->
timedown
=
np
->
timedown
;
}
}
gdh_ScopeUnlock
;
return
sts
;
}
/**
* @brief Get the characteristics of an attribute, given
* its name and the class it belongs to.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment