Changeset bbf38ad in mainline for kernel/generic/src/ipc/ipcrsc.c


Ignore:
Timestamp:
2018-03-11T07:35:05Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
af6bd113
Parents:
26a6ed4
git-author:
Jakub Jermar <jakub@…> (2018-03-10 19:59:41)
git-committer:
Jakub Jermar <jakub@…> (2018-03-11 07:35:05)
Message:

Publish capability only after phone connects

In IPC_M_CONNECT_TO_ME it is desirable to publish the new phone
capability only after the phone gets connected. Otherwise we might have
open phones without capabilities and no way to hang them up in
ipc_cleanup().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipcrsc.c

    r26a6ed4 rbbf38ad  
    209209}
    210210
    211 /** Connect phone to a given answerbox.
    212  *
    213  * @param handle  Capability handle of the phone to be connected.
    214  * @param box     Answerbox to which to connect the phone.
    215  * @return        True if the phone was connected, false otherwise.
    216  */
    217 bool phone_connect(cap_handle_t handle, answerbox_t *box)
    218 {
    219         kobject_t *phone_obj = kobject_get(TASK, handle, KOBJECT_TYPE_PHONE);
    220         if (!phone_obj)
    221                 return false;
    222 
    223         /* Hand over phone_obj reference to the answerbox */
    224         return ipc_phone_connect(phone_obj->phone, box);
    225 }
    226 
    227211/** @}
    228212 */
Note: See TracChangeset for help on using the changeset viewer.