hvcs.c (446279168e030fd0ed68e2bba336bef8bb3da352) hvcs.c (eb9e109d010cb79ab01d8562e851d53bcecf059b)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * IBM eServer Hypervisor Virtual Console Server Device Driver
4 * Copyright (C) 2003, 2004 IBM Corp.
5 * Ryan S. Arnold (rsa@us.ibm.com)
6 *
7 * Author(s) : Ryan S. Arnold <rsa@us.ibm.com>
8 *

--- 825 unchanged lines hidden (view full) ---

834
835/* Only called from hvcs_get_pi please */
836static void hvcs_set_pi(struct hvcs_partner_info *pi, struct hvcs_struct *hvcsd)
837{
838 hvcsd->p_unit_address = pi->unit_address;
839 hvcsd->p_partition_ID = pi->partition_ID;
840
841 /* copy the null-term char too */
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * IBM eServer Hypervisor Virtual Console Server Device Driver
4 * Copyright (C) 2003, 2004 IBM Corp.
5 * Ryan S. Arnold (rsa@us.ibm.com)
6 *
7 * Author(s) : Ryan S. Arnold <rsa@us.ibm.com>
8 *

--- 825 unchanged lines hidden (view full) ---

834
835/* Only called from hvcs_get_pi please */
836static void hvcs_set_pi(struct hvcs_partner_info *pi, struct hvcs_struct *hvcsd)
837{
838 hvcsd->p_unit_address = pi->unit_address;
839 hvcsd->p_partition_ID = pi->partition_ID;
840
841 /* copy the null-term char too */
842 strlcpy(hvcsd->p_location_code, pi->location_code,
842 strscpy(hvcsd->p_location_code, pi->location_code,
843 sizeof(hvcsd->p_location_code));
844}
845
846/*
847 * Traverse the list and add the partner info that is found to the hvcs_struct
848 * struct entry. NOTE: At this time I know that partner info will return a
849 * single entry but in the future there may be multiple partner info entries per
850 * vty-server and you'll want to zero out that list and reset it. If for some

--- 720 unchanged lines hidden ---
843 sizeof(hvcsd->p_location_code));
844}
845
846/*
847 * Traverse the list and add the partner info that is found to the hvcs_struct
848 * struct entry. NOTE: At this time I know that partner info will return a
849 * single entry but in the future there may be multiple partner info entries per
850 * vty-server and you'll want to zero out that list and reset it. If for some

--- 720 unchanged lines hidden ---