Identity Mappings

Understanding from the context of the legacy workqueue interface….

  • create_workqueue(name) maps to

    alloc_workqueue(name,WQ_MEM_RECLAIM, 1)

  • create_singlethread_workqueue(name) maps to

    alloc_ordered_workqueue(name, WQ_MEM_RECLAIM)

  • create_freezable_workqueue(name) maps to

    alloc_workqueue(name,WQ_FREEZABLE | WQ_UNBOUND|WQ_MEM_RECLAIM, 1)

As you can see the API calls in the legacy interface are an overkill with so many flags set.

The new API is richer, more expressive and better performing … Hence, the conversion.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s