summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_getfiles.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-26 20:17:29 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-26 20:17:29 +0000
commit8300858eb811cc92011e98a5d89390df420e665e (patch)
tree34b5782ba8b0613427d231151c3111b886474da1 /nuttx/sched/sched_getfiles.c
parent03a486c40db2af681a40776e54d7f936c7e9d499 (diff)
downloadpx4-nuttx-8300858eb811cc92011e98a5d89390df420e665e.tar.gz
px4-nuttx-8300858eb811cc92011e98a5d89390df420e665e.tar.bz2
px4-nuttx-8300858eb811cc92011e98a5d89390df420e665e.zip
Move file data from TCB to task group
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5567 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_getfiles.c')
-rw-r--r--nuttx/sched/sched_getfiles.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/sched/sched_getfiles.c b/nuttx/sched/sched_getfiles.c
index 256b4cb6b..eca4ba3ff 100644
--- a/nuttx/sched/sched_getfiles.c
+++ b/nuttx/sched/sched_getfiles.c
@@ -70,7 +70,10 @@
FAR struct filelist *sched_getfiles(void)
{
FAR _TCB *rtcb = (FAR _TCB*)g_readytorun.head;
- return rtcb->filelist;
+ FAR struct task_group_s *group = rtcb->group;
+
+ DEBUGASSERT(group);
+ return &group->tg_filelist;
}
#endif /* CONFIG_NFILE_DESCRIPTORS */