Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1007605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:38:35+00:00 2026-05-16T08:38:35+00:00

I have trouble to find the kernel API to enable some qdisc policies tc

  • 0

I have trouble to find the kernel API to enable some qdisc policies “tc” utility run from user-space.

I found the modules in net/sched/sch_*.c but I’m not sure how to use them.

For instance, if I want to enable TBF, should I do something like the following in my code?

    static struct Qdisc_ops tbf_qdisc_ops __read_mostly = {
    .next           =       NULL,
    .cl_ops         =       &tbf_class_ops,
    .id             =       "tbf",
    .priv_size      =       sizeof(struct tbf_sched_data),
    .enqueue        =       tbf_enqueue,
    .dequeue        =       tbf_dequeue,
    .peek           =       qdisc_peek_dequeued,
    .drop           =       tbf_drop,
    .init           =       tbf_init,
    .reset          =       tbf_reset,
    .destroy        =       tbf_destroy,
    .change         =       tbf_change,
    .dump           =       tbf_dump,
    .owner          =       THIS_MODULE,

};
register_qdisc(&tbf_qdisc_ops);
Is that enough?
How do I attach qdisc to a net device?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:38:35+00:00Added an answer on May 16, 2026 at 8:38 am

    qdisc modification is exposed only to netlink API. That means that it’s designed to be changed from the userspace. However, if qdisc is defined using tc, its’ parameters can be changed within the kernel by calling .change() function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some trouble with an SQL statement that have to find the number
I have some trouble reading from an ini file using boost program options. The
I have trouble passing a variable from inside a loop. Code: # find all
I have some trouble to find a css solution for having an active anchor
Having a bit of trouble using the List.Find with a custom predicate i have
I have trouble where, for some reason, SVN would only merge the newly generated
We are designing a web site and have run into some UI challenges that
I have been having trouble find much documentation on o3d (not too surprisingly). Does
I'm new to CMake and have trouble understanding some usage concepts. I'm calling a
I currently have some trouble with the Heap in a program of mine. While

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.