Home | History | Annotate | Download | only in fen

Lines Matching refs:fo

81     _f* fo = g_hash_table_lookup (_obj_fen_hash, f);
83 if (fo) {
84 return fo->is_active;
208 _f* fo;
224 fo = (_f*)pe[i].portev_user;
230 fo->is_active = FALSE;
231 if (fo->user_data) {
233 printevent(F_NAME(fo), pe[i].portev_events, "RAW"));
234 port_add_kevent (pe[i].portev_events, fo->user_data);
240 g_hash_table_remove (_obj_fen_hash, fo->user_data);
242 FK_W ("[ FREE_FO ] [0x%p]\n", fo);
243 pnode_delete (fo->port);
244 g_free (fo);
350 _f* fo = NULL;
355 if ((fo = g_hash_table_lookup (_obj_fen_hash, f)) == NULL) {
356 fo = g_new0 (_f, 1);
357 fo->fobj = fobj;
358 fo->user_data = f;
359 g_assert (fo);
360 FK_W ("[ NEW_FO ] [0x%p] %s\n", fo, F_NAME(fo));
361 g_hash_table_insert (_obj_fen_hash, f, fo);
364 if (fo->is_active) {
368 if (fo->port == NULL) {
369 fo->port = pnode_new ();
373 if (FN_STAT (F_NAME(fo), &buf) != 0) {
374 FK_W ("LSTAT [%-20s] %s\n", F_NAME(fo), g_strerror (errno));
378 fo->fobj->fo_atime = buf.st_atim;
379 fo->fobj->fo_mtime = buf.st_mtim;
380 fo->fobj->fo_ctime = buf.st_ctim;
384 if (port_associate (F_PORT(fo),
386 (uintptr_t)fo->fobj,
388 (void *)fo) == 0) {
389 fo->is_active = TRUE;
390 FK_W ("%s %s\n", "PORT_ASSOCIATE", F_NAME(fo));
393 FK_W ("PORT_ASSOCIATE [%-20s] %s\n", F_NAME(fo), g_strerror (errno));
395 FK_W ("[ FREE_FO ] [0x%p]\n", fo);
397 pnode_delete (fo->port);
398 g_free (fo);
424 _f* fo = NULL;
427 if ((fo = g_hash_table_lookup (_obj_fen_hash, f)) != NULL) {
429 fo->user_data = NULL;
432 if (port_dissociate (F_PORT(fo),
434 (uintptr_t)fo->fobj) == 0) {
442 FK_W ("[ FREE_FO ] [0x%p]\n", fo);
443 pnode_delete (fo->port);
444 g_free (fo);
446 FK_W ("PORT_DISSOCIATE [%-20s] %s\n", F_NAME(fo), g_strerror (errno));