Jump to content

macro definition

- - - - -

  • Please log in to reply
3 replies to this topic

#1
onus

onus

    Programmer

  • Members
  • PipPipPipPip
  • 115 posts
What does following macro define
#define RTL8139_DRIVER_NAME   DRV_NAME " Fast Ethernet driver " DRV_VERSION

I have usuallay used Macro with just one name
here I am not getting what such macro means.
Here is a link to program
Linux/drivers/net/8139too.c - Linux Cross Reference - Free Electrons

#2
Calgon

Calgon

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
It relies on the other two macros (DRV_VERSION and DRV_NAME) along with the code in the quotation marks. The other two capitalized dialogs of text are macros.

#3
mnirahd

mnirahd

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 330 posts
Hi,

The macro would use another two macros DRV_NAME & DRV_VERSION, and forms a complete driver name for an ethernet device.

Munir

#4
onus

onus

    Programmer

  • Members
  • PipPipPipPip
  • 115 posts
Ok.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users