Changeset 6364d3c in mainline


Ignore:
Timestamp:
2007-12-04T20:29:55Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9119d25
Parents:
38c706cc
Message:

Sync IPC comments with IPC code.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/ipc.h

    r38c706cc r6364d3c  
    119119 * The protocol for negotiating is:
    120120 * - sys_connect_to_me - sends a message IPC_M_CONNECT_TO_ME
    121  * - sys_wait_for_call - upon receipt tries to allocate new phone
     121 * - recipient        - upon receipt tries to allocate new phone
    122122 *                       - if it fails, responds with ELIMIT
    123123 *                     - passes call to userspace. If userspace
     
    127127 *                     - the allocated phoneid is passed to userspace
    128128 *                       (on the receiving side) as ARG5 of the call.
    129  *                     - the caller obtains taskid of the called thread
    130129 */
    131130#define IPC_M_CONNECT_TO_ME     1
     
    142141 *                       address of the phone that should be connected
    143142 *                       (TODO: it leaks to userspace)
    144  *   recipient         -  if ipc_answer == 0, then accept connection
     143 *  - recipient        -  if ipc_answer == 0, then accept connection
    145144 *                     -  otherwise connection refused
    146  *                     -  recepient may forward message. Forwarding
    147  *                        system message
     145 *                     -  recepient may forward message.
    148146 *
    149147 */
  • kernel/generic/src/ipc/sysipc.c

    r38c706cc r6364d3c  
    185185                        /* The connection was accepted */
    186186                        phone_connect(phoneid, &answer->sender->answerbox);
    187                         /* Set 'phone hash' as arg3 of response */
     187                        /* Set 'phone hash' as arg5 of response */
    188188                        IPC_SET_ARG5(answer->data,
    189189                            (unative_t) &TASK->phones[phoneid]);
     
    270270                if (newphid < 0)
    271271                        return ELIMIT;
    272                 /* Set arg3 for server */
     272                /* Set arg5 for server */
    273273                IPC_SET_ARG5(call->data, (unative_t) &TASK->phones[newphid]);
    274274                call->flags |= IPC_CALL_CONN_ME_TO;
  • uspace/srv/fs/fat/fat.h

    r38c706cc r6364d3c  
    136136extern uint8_t *plb_ro;
    137137
     138extern void fat_lookup(ipc_callid_t, ipc_call_t *);
     139
     140/*
     141 * The following interfaces are rather fs-neutral and might be later moved to a
     142 * dedicated library (e.g. libfs). We just wait until the interfaces stabilize
     143 * and until there is more than one fs implementation.
     144 */
    138145extern int block_read(int, unsigned long, void *);
     146extern int block_write(int, unsigned long, void *);
    139147
    140 extern void fat_lookup(ipc_callid_t, ipc_call_t *);
     148extern void node_add_mp(int, unsigned long);
     149extern void node_del_mp(int, unsigned long);
     150extern bool node_is_mp(int, unsigned long);
    141151
    142152#endif
  • uspace/srv/fs/fat/fat_ops.c

    r38c706cc r6364d3c  
    3737
    3838#include "fat.h"
     39#include "../../vfs/vfs.h"
    3940#include <ipc/ipc.h>
    4041#include <async.h>
    4142#include <errno.h>
     43
     44#define PLB_GET_CHAR(i)         (plb_ro[(i) % PLB_SIZE])
     45
     46#define FAT_NAME_LEN            8
     47#define FAT_EXT_LEN             3
     48
     49#define FAT_PAD                 ' '
     50
     51#define FAT_DENTRY_UNUSED       0x00
     52#define FAT_DENTRY_E5_ESC       0x05
     53#define FAT_DENTRY_DOT          0x2e
     54#define FAT_DENTRY_ERASED       0xe5
     55
     56static int match_path_component(fat_dentry_t *dentry, unsigned index,
     57    size_t len)
     58{
     59}
    4260
    4361void fat_lookup(ipc_callid_t rid, ipc_call_t *request)
Note: See TracChangeset for help on using the changeset viewer.