LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-20-2018, 02:37 AM   #1
dpaks
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Rep: Reputation: Disabled
Question Any interface to access tc flower from another kernel module?


I was looking at linux tc flower source code. I see that when a flow is modified, a netlink message is sent from user space to kernel space to create/delete/modify the flow. Rather than the userspace triggering those, I would like my kernel module (which I'm building) to do the same. But I don't find any interface to access tc flower functions. Almost everything is defined statically.

So, is there any interface to access tc flower kernel functions from another kernel module?
 
Old 06-20-2018, 11:13 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000
Hi dpaks,

Welcome!

Tc flower accesses kernel functions. If you want to access those same functions, then follow the code. But I doubt that tc-flower has an api to use it to access the kernel functions it accesses.
 
Old 06-21-2018, 01:02 AM   #3
dpaks
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by AwesomeMachine View Post
Hi dpaks,

Welcome!

Tc flower accesses kernel functions. If you want to access those same functions, then follow the code. But I doubt that tc-flower has an api to use it to access the kernel functions it accesses.
Thanks, AwesomeMachine. I have already gone through its code. I e-mailed some of the people who have pushed that code asking the same question but I didn't receive any response yet.

Most of the tc flower functions are static. I need to access the functions that implements the tc flower operations. So, I need a confirmation that there isn't any API to access them.

Do you have any clue as to why the devs kept tc flower so closed?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Per-app, on-the-fly access filtering : Tuxguardian, Douane, Leopard Flower? Herve5 Linux - Networking 7 05-16-2017 05:14 AM
Linux kernel module installation and other questions related to kernel module install yashgovin19 Linux - Newbie 1 06-03-2015 03:33 PM
[SOLVED] Install older kernel module into newer kernel - no symbol version for module bayoulinux Linux - Kernel 4 10-26-2011 05:32 AM
How a kernel module can access to a serial line (/dev/ttySn) Frederic PAUT Linux - Newbie 2 11-18-2008 07:55 AM
want to write a kernel module which creates 10 processes to access common varaible hrushi_kute Programming 7 09-27-2008 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration