I am writing a character device driver, and I would like to know how to extend the "add port" functionality to the device in the driver.

Any suggestions are welcomed.
Thank you very much.