参照元

説明

参考

実装

/**
 * struct ion_device - the metadata of the ion device node
 * @dev:                the actual misc device
 * @buffers:            an rb tree of all the existing buffers
 * @buffer_lock:        lock protecting the tree of buffers
 * @lock:               rwsem protecting the tree of heaps and clients
 * @heaps:              list of all the heaps in the system
 * @user_clients:       list of all the clients created from userspace
 */
struct ion_device {
        struct miscdevice dev;
        struct rb_root buffers;
        struct mutex buffer_lock;
        struct rw_semaphore lock;
        struct plist_head heaps;
        long (*custom_ioctl)(struct ion_client *client, unsigned int cmd,
                             unsigned long arg);
        struct rb_root clients;
        struct dentry *debug_root;
        struct dentry *heaps_debug_root;
        struct dentry *clients_debug_root;
};

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-03-09 (水) 12:17:20