*参照元 [#g1877e7f]
#backlinks

*説明 [#de92a264]
-パス: [[linux-4.4.1/drivers/staging/android/ion/ion.c]]

-FIXME: これは何?
--説明


**引数 [#f7e086d5]
-struct vm_area_struct *vma
--
--[[linux-4.4.1/vm_area_struct]]


**返り値 [#s5813d2f]
-なし


**参考 [#g5b492bf]


*実装 [#xe40dad3]
 static void ion_vm_close(struct vm_area_struct *vma)
 {
         struct ion_buffer *buffer = vma->vm_private_data;
         struct ion_vma_list *vma_list, *tmp;
 
-
--[[linux-4.4.1/ion_buffer]]
--[[linux-4.4.1/ion_vma_list]]

         pr_debug("%s\n", __func__);
         mutex_lock(&buffer->lock);
-
--[[linux-4.4.1/pr_debug()]]
--[[linux-4.4.1/mutex_lock()]]

         list_for_each_entry_safe(vma_list, tmp, &buffer->vmas, list) {
                 if (vma_list->vma != vma)
                         continue;
                 list_del(&vma_list->list);
                 kfree(vma_list);
                 pr_debug("%s: deleting %p\n", __func__, vma);
-
--[[linux-4.4.1/list_for_each_entry_safe()]]
--[[linux-4.4.1/list_del()]]
--[[linux-4.4.1/kfree()]]

                 break;
         }
         mutex_unlock(&buffer->lock);
-
--[[linux-4.4.1/mutex_unlock()]]

 }


*コメント [#vecd7502]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS