make irq specifier to be provided when assigining irq
[lunaix-os.git] / lunaix-os / kernel / process / task_attr.c
index 7c954b30ea9c3a44510885d0e389dbd8de379c05..7c4c83d1be6544930e15e4a4f2b639aa3a5a166a 100644 (file)
@@ -1,20 +1,6 @@
 #include <lunaix/fs/taskfs.h>
 #include <lunaix/process.h>
 
-void
-__read_pending_sig(struct twimap* map)
-{
-    struct proc_info* proc = twimap_data(map, struct proc_info*);
-    twimap_printf(map, "%bb", proc->sig_pending);
-}
-
-void
-__read_masked_sig(struct twimap* map)
-{
-    struct proc_info* proc = twimap_data(map, struct proc_info*);
-    twimap_printf(map, "%bb", proc->sig_mask);
-}
-
 void
 __read_parent(struct twimap* map)
 {
@@ -76,13 +62,15 @@ void
 export_task_attr()
 {
     struct twimap* map;
-    map = twimap_create(NULL);
-    map->read = __read_pending_sig;
-    taskfs_export_attr("sig_pending", map);
+    
+    // FIXME goes to thread specific location
+    // map = twimap_create(NULL);
+    // map->read = __read_pending_sig;
+    // taskfs_export_attr("sig_pending", map);
 
-    map = twimap_create(NULL);
-    map->read = __read_masked_sig;
-    taskfs_export_attr("sig_masked", map);
+    // map = twimap_create(NULL);
+    // map->read = __read_masked_sig;
+    // taskfs_export_attr("sig_masked", map);
 
     map = twimap_create(NULL);
     map->read = __read_parent;