【问题标题】:How many items can be queued in the waitqueu in linux?linux的waitqueu中可以排队多少个项目?
【发布时间】:2014-03-07 11:16:26
【问题描述】:

我想知道等待队列的最大大小是多少。如何知道waitqueue的上限

问候 索宾

【问题讨论】:

    标签: linux kernel driver device


    【解决方案1】:

    根据source,waitqueue 只是一个任务列表,所以没有最大大小:

    struct __wait_queue_head {
            spinlock_t              lock;
            struct list_head        task_list;
    };
    typedef struct __wait_queue_head wait_queue_head_t;
    

    【讨论】:

      猜你喜欢
      • 2016-03-12
      • 2011-08-23
      • 1970-01-01
      • 2016-07-22
      • 1970-01-01
      • 1970-01-01
      • 2019-02-10
      • 2014-03-21
      • 1970-01-01
      相关资源
      最近更新 更多