diff options
author | Zdenek Styblik <stybla@turnovfree.net> | 2015-01-11 09:39:13 +0100 |
---|---|---|
committer | Zdenek Styblik <stybla@turnovfree.net> | 2015-01-11 09:39:13 +0100 |
commit | 585cb7c83daf645bb6b5eb09bb8c2555f652bb0a (patch) | |
tree | e69496ebb5ea031996b147420625eeeb68e8616e /lib/ipmi_channel.c | |
parent | 708be8bc450f907cddb6d9e4b83aee6ba67b7d04 (diff) | |
download | ipmitool-585cb7c83daf645bb6b5eb09bb8c2555f652bb0a.tar.gz |
Add documentation to 'getaccess' and 'setaccess' functions
Diffstat (limited to 'lib/ipmi_channel.c')
-rw-r--r-- | lib/ipmi_channel.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/ipmi_channel.c b/lib/ipmi_channel.c index 8a52f9e..4545adc 100644 --- a/lib/ipmi_channel.c +++ b/lib/ipmi_channel.c @@ -350,6 +350,14 @@ ipmi_get_channel_info(struct ipmi_intf *intf, uint8_t channel) return 0; } +/* ipmi_get_user_access - Get User Access for given Channel and User or Users. + * + * @intf - IPMI interface + * @channel - IPMI Channel we're getting access for + * @userid - User ID. If 0 is passed, all IPMI users will be listed + * + * returns - 0 on success, (-1) on error + */ static int ipmi_get_user_access(struct ipmi_intf *intf, uint8_t channel, uint8_t userid) { @@ -641,6 +649,7 @@ ipmi_current_channel_medium(struct ipmi_intf *intf) return ipmi_get_channel_medium(intf, 0xE); } +/* printf_channel_usage - print-out help. */ void printf_channel_usage() { @@ -673,6 +682,11 @@ printf_channel_usage() " 15 No access"); } +/* ipmi_set_user_access - Query BMC for current Channel ACLs, parse CLI args + * and update current ACLs. + * + * returns - 0 on success, (-1) on error + */ int ipmi_set_user_access(struct ipmi_intf *intf, int argc, char **argv) { |