Subversion Repositories HelenOS

Rev

Rev 2792 | Rev 2844 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2792 Rev 2831
Line 195... Line 195...
195
                void *nodep;
195
                void *nodep;
196
                if (lflag & L_CREATE)
196
                if (lflag & L_CREATE)
197
                    nodep = ops->create(lflag);
197
                    nodep = ops->create(lflag);
198
                else
198
                else
199
                    nodep = ops->node_get(dev_handle,
199
                    nodep = ops->node_get(dev_handle,
200
                        index);
200
                        index, ops->index_get(cur));
201
                if (nodep) {
201
                if (nodep) {
202
                    if (!ops->link(cur, nodep, component)) {
202
                    if (!ops->link(cur, nodep, component)) {
203
                        if (lflag & L_CREATE)
203
                        if (lflag & L_CREATE)
204
                            ops->destroy(nodep);
204
                            ops->destroy(nodep);
205
                        ipc_answer_0(rid, ENOSPC);
205
                        ipc_answer_0(rid, ENOSPC);
Line 258... Line 258...
258
               
258
               
259
            void *nodep;
259
            void *nodep;
260
            if (lflag & L_CREATE)
260
            if (lflag & L_CREATE)
261
                nodep = ops->create(lflag);
261
                nodep = ops->create(lflag);
262
            else
262
            else
263
                nodep = ops->node_get(dev_handle, index);
263
                nodep = ops->node_get(dev_handle, index,
-
 
264
                    ops->index_get(cur));
264
            if (nodep) {
265
            if (nodep) {
265
                if (!ops->link(cur, nodep, component)) {
266
                if (!ops->link(cur, nodep, component)) {
266
                    if (lflag & L_CREATE)
267
                    if (lflag & L_CREATE)
267
                        ops->destroy(nodep);
268
                        ops->destroy(nodep);
268
                    ipc_answer_0(rid, ENOSPC);
269
                    ipc_answer_0(rid, ENOSPC);